Skip to content

feat: add quorum info and single masternode lookup to bridge#37

Merged
xdustinface merged 2 commits intov0.42-devfrom
claude/issue-36-20260313-2200
Mar 13, 2026
Merged

feat: add quorum info and single masternode lookup to bridge#37
xdustinface merged 2 commits intov0.42-devfrom
claude/issue-36-20260313-2200

Conversation

@xdustinface
Copy link
Owner

Summary

  • Add get_masternode(pro_tx_hash) method for single MN lookup
  • Add QuorumInfo record with quorum hash, type, member count, active status
  • Add get_active_quorums() method (stub returning empty vec for now)
  • Bridge tests for new methods

Closes #36

Test plan

  • 42 bridge tests passing
  • get_masternode returns None for unknown hash
  • get_active_quorums returns empty when no quorum data

github-actions bot and others added 2 commits March 13, 2026 22:05
…niFFI bridge

- Add `get_masternode(pro_tx_hash: String) -> Option<MasternodeInfo>` to SpvClient,
  filtering the existing masternode list by pro_tx_hash
- Add `QuorumInfo` record with quorum_hash, quorum_type, members_count, and active fields
  mapped from `QualifiedQuorumEntry` / `LLMQType` in the masternode list
- Add `get_active_quorums() -> Vec<QuorumInfo>` to SpvClient, iterating the
  `quorums` map of the latest masternode list from the engine
- Add unit tests for all new types and methods (no-engine, empty-engine, field assertions)

Closes #36

Co-authored-by: Kevin Rombach <xdustinface@users.noreply.github.com>
@xdustinface xdustinface merged commit 6adcc57 into v0.42-dev Mar 13, 2026
50 of 52 checks passed
@xdustinface xdustinface deleted the claude/issue-36-20260313-2200 branch March 13, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add quorum info and single masternode lookup to UniFFI bridge

1 participant