Skip to content

Commit 1d765dd

Browse files
committed
fix(spv): reverse quorum hash before lookup
1 parent 2340750 commit 1d765dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dash-spv/src/client/queries.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ impl<
7878
quorum_type: LLMQType,
7979
quorum_hash: QuorumHash,
8080
) -> Result<QualifiedQuorumEntry> {
81+
// Reverse the quorum hash bytes for lookup
82+
// DAPI returns BE in `ResponseMetadata`, but we store as LE
83+
let quorum_hash = quorum_hash.reverse();
84+
8185
// First check if we have the masternode list at this height
8286
match self.get_masternode_list_at_height(height) {
8387
Some(ml) => {

0 commit comments

Comments
 (0)