Skip to content

Commit

Permalink
chore(node): disable reputation updating in wit/2
Browse files Browse the repository at this point in the history
  • Loading branch information
drcpu-github committed Nov 25, 2024
1 parent e8ab133 commit 2d4281d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions node/src/actors/chain_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1295,16 +1295,18 @@ impl ChainManager {

// Do not update reputation or stakes when consolidating genesis block
if block_hash != chain_info.consensus_constants.genesis_hash {
update_reputation(
reputation_engine,
&mut self.chain_state.alt_keys,
&chain_info.consensus_constants,
miner_pkh,
rep_info,
log_level,
block_epoch,
self.own_pkh.unwrap_or_default(),
);
if ProtocolVersion::from_epoch(block_epoch) < ProtocolVersion::V2_0 {
update_reputation(
reputation_engine,
&mut self.chain_state.alt_keys,
&chain_info.consensus_constants,
miner_pkh,
rep_info,
log_level,
block_epoch,
self.own_pkh.unwrap_or_default(),
);
}

let stake_txns_count = block.txns.stake_txns.len();
if stake_txns_count > 0 {
Expand Down

0 comments on commit 2d4281d

Please sign in to comment.