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

Commit

Permalink
Merge pull request #6241 from paritytech/poa-proof-fix
Browse files Browse the repository at this point in the history
format instant change proofs correctly
  • Loading branch information
debris authored Aug 8, 2017
2 parents 80db434 + e43b108 commit e7a7bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ethcore/src/engines/authority_round/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ impl Engine for AuthorityRound {

// apply immediate transitions.
if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
let change = combine_proofs(chain_head.number(), &change, &[]);
return Some(change)
}

Expand Down
1 change: 1 addition & 0 deletions ethcore/src/engines/tendermint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ impl Engine for Tendermint {
let first = chain_head.number() == 0;

if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
let change = combine_proofs(chain_head.number(), &change, &[]);
return Some(change)
} else if let Some(pending) = transition_store(chain_head.hash()) {
let signal_number = chain_head.number();
Expand Down

0 comments on commit e7a7bd6

Please sign in to comment.