File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
dash/src/sml/masternode_list Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- use std:: collections:: BTreeMap ;
2-
31use crate :: bls_sig_utils:: BLSSignature ;
42use crate :: network:: message_sml:: MnListDiff ;
53use crate :: sml:: error:: SmlError ;
@@ -11,6 +9,8 @@ use crate::sml::quorum_entry::qualified_quorum_entry::{
119 QualifiedQuorumEntry , VerifyingChainLockSignaturesType ,
1210} ;
1311use crate :: { BlockHash , Network } ;
12+ use hashes:: Hash ;
13+ use std:: collections:: BTreeMap ;
1414
1515pub trait TryFromWithBlockHashLookup < T > : Sized {
1616 type Error ;
@@ -67,7 +67,9 @@ impl TryFromWithBlockHashLookup<MnListDiff> for MasternodeList {
6767 {
6868 if let Some ( genesis_block_hash) = network. known_genesis_block_hash ( ) {
6969 // Check if the base block is the genesis block
70- if diff. base_block_hash != genesis_block_hash {
70+ if diff. base_block_hash != genesis_block_hash
71+ && diff. base_block_hash . as_byte_array ( ) != & [ 0 ; 32 ]
72+ {
7173 return Err ( SmlError :: BaseBlockNotGenesis ( diff. base_block_hash ) ) ;
7274 }
7375 }
You can’t perform that action at this time.
0 commit comments