@@ -71,7 +71,7 @@ use witnet_data_structures::{
7171 } ,
7272 data_request:: DataRequestPool ,
7373 get_environment, get_protocol_version, get_protocol_version_activation_epoch,
74- proto:: versioning:: ProtocolVersion ,
74+ proto:: versioning:: { ProtocolVersion , VersionedHashable } ,
7575 radon_error:: RadonError ,
7676 radon_report:: { RadonReport , ReportContext } ,
7777 register_protocol_version,
@@ -705,7 +705,7 @@ impl ChainManager {
705705
706706 let mut transaction_visitor = PriorityVisitor :: default ( ) ;
707707
708- let protocol_version = get_protocol_version ( self . current_epoch ) ;
708+ let protocol_version = get_protocol_version ( Some ( block . block_header . beacon . checkpoint ) ) ;
709709 let utxo_diff = process_validations (
710710 & block,
711711 self . current_epoch . unwrap_or_default ( ) ,
@@ -978,8 +978,8 @@ impl ChainManager {
978978 ref mut stakes,
979979 ..
980980 } => {
981- let block_hash = block. hash ( ) ;
982981 let block_epoch = block. block_header . beacon . checkpoint ;
982+ let block_hash = block. versioned_hash ( get_protocol_version ( Some ( block_epoch) ) ) ;
983983 let block_signals = block. block_header . signals ;
984984 let validator_count = stakes. validator_count ( ) ;
985985
0 commit comments