@@ -71,7 +71,7 @@ use witnet_data_structures::{
71
71
} ,
72
72
data_request:: DataRequestPool ,
73
73
get_environment, get_protocol_version, get_protocol_version_activation_epoch,
74
- proto:: versioning:: ProtocolVersion ,
74
+ proto:: versioning:: { ProtocolVersion , VersionedHashable } ,
75
75
radon_error:: RadonError ,
76
76
radon_report:: { RadonReport , ReportContext } ,
77
77
register_protocol_version,
@@ -705,7 +705,7 @@ impl ChainManager {
705
705
706
706
let mut transaction_visitor = PriorityVisitor :: default ( ) ;
707
707
708
- let protocol_version = get_protocol_version ( self . current_epoch ) ;
708
+ let protocol_version = get_protocol_version ( Some ( block . block_header . beacon . checkpoint ) ) ;
709
709
let utxo_diff = process_validations (
710
710
& block,
711
711
self . current_epoch . unwrap_or_default ( ) ,
@@ -978,8 +978,8 @@ impl ChainManager {
978
978
ref mut stakes,
979
979
..
980
980
} => {
981
- let block_hash = block. hash ( ) ;
982
981
let block_epoch = block. block_header . beacon . checkpoint ;
982
+ let block_hash = block. versioned_hash ( get_protocol_version ( Some ( block_epoch) ) ) ;
983
983
let block_signals = block. block_header . signals ;
984
984
let validator_count = stakes. validator_count ( ) ;
985
985
0 commit comments