diff --git a/node/src/chain/header_validation.rs b/node/src/chain/header_validation.rs index 2dc72c29ec..6eddb29775 100644 --- a/node/src/chain/header_validation.rs +++ b/node/src/chain/header_validation.rs @@ -226,9 +226,13 @@ impl<'a, DB: database::DB> Validator<'a, DB> { anyhow::ensure!(pk == &expected_pk, "Invalid generator. Expected {expected_pk:?}, actual {pk:?}"); + let mut consensus_header = + candidate_block.to_consensus_header(); + consensus_header.iteration = iter as u8; + let (_, rat_quorum, _) = verify_att( att, - candidate_block.to_consensus_header(), + consensus_header, self.prev_header.seed, self.provisioners.current(), RatificationResult::Fail(Vote::default()), diff --git a/rusk/src/lib/node/rusk.rs b/rusk/src/lib/node/rusk.rs index 663b41f7a7..1dba4d2978 100644 --- a/rusk/src/lib/node/rusk.rs +++ b/rusk/src/lib/node/rusk.rs @@ -803,7 +803,7 @@ fn slash(session: &mut Session, slash: Vec) -> Result> { node_data::ledger::SlashType::Hard => session.call::<_, ()>( STAKE_CONTRACT, "hard_slash", - &(provisioner, None::, None::), + &(provisioner, None::, None::), u64::MAX, ), node_data::ledger::SlashType::HardWithSeverity(severity) => session