From e43b1084c325e32a2ec73ae313b8ac0bcb38538c Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Fri, 4 Aug 2017 21:43:31 +0200 Subject: [PATCH] format instant change proofs correctly --- ethcore/src/engines/authority_round/mod.rs | 1 + ethcore/src/engines/tendermint/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/ethcore/src/engines/authority_round/mod.rs b/ethcore/src/engines/authority_round/mod.rs index 18389f168..e7284bfbe 100644 --- a/ethcore/src/engines/authority_round/mod.rs +++ b/ethcore/src/engines/authority_round/mod.rs @@ -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) } diff --git a/ethcore/src/engines/tendermint/mod.rs b/ethcore/src/engines/tendermint/mod.rs index 1c962d633..cc75e99c3 100644 --- a/ethcore/src/engines/tendermint/mod.rs +++ b/ethcore/src/engines/tendermint/mod.rs @@ -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();