Merge pull request #6241 from paritytech/poa-proof-fix
format instant change proofs correctly
This commit is contained in:
commit
e7a7bd6695
@ -690,6 +690,7 @@ impl Engine for AuthorityRound {
|
|||||||
|
|
||||||
// apply immediate transitions.
|
// apply immediate transitions.
|
||||||
if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
|
if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
|
||||||
|
let change = combine_proofs(chain_head.number(), &change, &[]);
|
||||||
return Some(change)
|
return Some(change)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -643,6 +643,7 @@ impl Engine for Tendermint {
|
|||||||
let first = chain_head.number() == 0;
|
let first = chain_head.number() == 0;
|
||||||
|
|
||||||
if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
|
if let Some(change) = self.validators.is_epoch_end(first, chain_head) {
|
||||||
|
let change = combine_proofs(chain_head.number(), &change, &[]);
|
||||||
return Some(change)
|
return Some(change)
|
||||||
} else if let Some(pending) = transition_store(chain_head.hash()) {
|
} else if let Some(pending) = transition_store(chain_head.hash()) {
|
||||||
let signal_number = chain_head.number();
|
let signal_number = chain_head.number();
|
||||||
|
Loading…
Reference in New Issue
Block a user