Skip to content

Commit 8746c84

Browse files
more work
1 parent fba0e8c commit 8746c84

File tree

1 file changed

+1
-1
lines changed
  • dash/src/sml/masternode_list_engine

1 file changed

+1
-1
lines changed

dash/src/sml/masternode_list_engine/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl MasternodeListEngine {
131131
// we are going from the start
132132
let block_hash = masternode_list_diff.block_hash;
133133

134-
let masternode_list = masternode_list_diff.try_into_with_block_hash_lookup(|block_hash| diff_end_height, self.network)?;
134+
let masternode_list = masternode_list_diff.try_into_with_block_hash_lookup(|block_hash| diff_end_height.and_then(self.block_heights.get(&block_hash)), self.network)?;
135135

136136
let diff_end_height = match diff_end_height {
137137
None => self.block_heights.get(&block_hash).ok_or(SmlError::BlockHashLookupFailed(block_hash)).cloned()?,

0 commit comments

Comments
 (0)