Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
aura: don't report skipped primaries when empty steps are enabled (#9435
Browse files Browse the repository at this point in the history
)
  • Loading branch information
andresilva authored and 5chdn committed Sep 8, 2018
1 parent d1b6357 commit ee745d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ethcore/src/engines/authority_round/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,10 @@ impl Engine<EthereumMachine> for AuthorityRound {
self.clear_empty_steps(parent_step);

// report any skipped primaries between the parent block and
// the block we're sealing
self.report_skipped(header, step, u64::from(parent_step) as usize, &*validators, set_number);
// the block we're sealing, unless we have empty steps enabled
if header.number() < self.empty_steps_transition {
self.report_skipped(header, step, u64::from(parent_step) as usize, &*validators, set_number);
}

let mut fields = vec![
encode(&step).into_vec(),
Expand Down

0 comments on commit ee745d1

Please sign in to comment.