openethereum/ethcore/engines/validator-set/src
Andreas Fackler f59ed47b1b Aura: Report malice on sibling blocks from the same validator (#11160)
* Aura: Report malice on sibling blocks from the same validator

This was originally written by @vkomenda, then squashed for
easier rebasing on master. Cleanup of `received_step_hashes`
was moved to `verify_block_family`, since `on_prepare_block`
does not exist on master, and a unit test was added.
Original commit messages:

added the map of received block header hashes

do not return an error and remove older received block records

optimised older record removal

block hash comparison optimisation and the weak client ref fix

SIBLING_MALICE_DETECTION_PERIOD constant

review comments

using step numbers instead of block numbers

* Add docs; use map_or.

* Update step hash record comment.

Co-Authored-By: David <dvdplm@gmail.com>

* Remove hash records after 2 rounds instead of 100 steps.
2019-10-14 12:56:38 +02:00
..
contract.rs Extract spec to own crate (#10978) 2019-08-23 15:32:58 +02:00
lib.rs Extract engines to own crates (#10966) 2019-08-22 18:25:49 +02:00
multi.rs Extract spec to own crate (#10978) 2019-08-23 15:32:58 +02:00
safe_contract.rs EIP-1344 Add CHAINID op-code (#10983) 2019-08-28 16:15:50 +02:00
simple_list.rs Extract engines to own crates (#10966) 2019-08-22 18:25:49 +02:00
test.rs Aura: Report malice on sibling blocks from the same validator (#11160) 2019-10-14 12:56:38 +02:00