Fixes for misbehavior reporting in AuthorityRound (#8998)
* aura: only report after checking for repeated skipped primaries * aura: refactor duplicate code for getting epoch validator set * aura: verify_external: report on validator set contract instance * aura: use correct validator set epoch number when reporting * aura: use epoch set when verifying blocks * aura: report skipped primaries when generating seal * aura: handle immediate transitions * aura: don't report skipped steps from genesis to first block * aura: fix reporting test * aura: refactor duplicate code to handle immediate_transitions * aura: let reporting fail on verify_block_basic * aura: add comment about possible failure of reporting
Showing
- ethcore/src/engines/authority_round/mod.rs 117 additions, 81 deletionsethcore/src/engines/authority_round/mod.rs
- ethcore/src/engines/validator_set/mod.rs 1 addition, 1 deletionethcore/src/engines/validator_set/mod.rs
- ethcore/src/engines/validator_set/simple_list.rs 6 additions, 0 deletionsethcore/src/engines/validator_set/simple_list.rs
Please register or sign in to comment