Skip to content

Commit d5ebfa7

Browse files
handle empty hash
1 parent ddca887 commit d5ebfa7

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

dash/src/sml/masternode_list_engine/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,9 @@ impl MasternodeListEngine {
664664
.known_genesis_block_hash()
665665
.or_else(|| self.block_container.get_hash(&0).cloned())
666666
{
667-
if masternode_list_diff.base_block_hash == known_genesis_block_hash {
667+
if masternode_list_diff.base_block_hash == known_genesis_block_hash
668+
|| masternode_list_diff.base_block_hash.as_byte_array() == &[0; 32]
669+
{
668670
// we are going from the start
669671
let block_hash = masternode_list_diff.block_hash;
670672

0 commit comments

Comments
 (0)