openethereum/ethcore
David de906d4afd
Improve logging and cleanup in miner around block sealing (#10745)
* Stop breaking out of loop if a non-canonical hash is found

* include expected hash in log msg

* More logging

* Scope

* Syntax

* Log in blank RollingFinality
Escalate bad proposer to warning

* Check validator set size: warn if 1 or even number

* More readable code

* Use SimpleList::new

* Extensive logging on unexpected non-canonical hash

* Wording

* wip

* Update ethcore/blockchain/src/blockchain.rs

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Improved logging, address grumbles

* Update ethcore/src/engines/validator_set/simple_list.rs

Co-Authored-By: Luke Schoen <ltfschoen@users.noreply.github.com>

* Report benign misbehaviour iff currently a validator

* Report malicious behaviour iff we're a validator

* Escalate to warning and fix wording

* Test reporting behaviour
Don't require node to be part of the validator set to report malicious behaviour

* Include missing parent hash in MissingParent error

* Update ethcore/src/engines/validator_set/simple_list.rs

Co-Authored-By: Luke Schoen <ltfschoen@users.noreply.github.com>

* docs

* remove unneeded into()
Move check for parent_step == step for clarity&efficiency
Remove dead code for Seal::Proposal

* typo

* Wording

* naming

* WIP

* cleanup

* cosmetics

* cosmetics and one less lvar

* spelling

* Better loggin when a block is already in chain

* More logging

* On second thought non-validators are allowed to report

* cleanup

* remove dead code

* Keep track of the hash of the last imported block

* Let it lock

* Serialize access to block sealing

* Take a lock while sealing a block

* Cleanup

* whitespace
2019-07-04 18:03:22 +02:00
..
account-db Extract AccountDB to account-db (#10839) 2019-07-04 17:50:31 +02:00
benches Removed machine abstraction from ethcore (#10791) 2019-06-26 14:16:05 +02:00
blockchain Improve logging and cleanup in miner around block sealing (#10745) 2019-07-04 18:03:22 +02:00
call-contract docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
db Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
evm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
light removed EthEngine alias (#10805) 2019-06-28 10:18:18 +02:00
node-filter docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
pod-account Extricate PodAccount and state Account to own crates (#10838) 2019-07-04 15:20:44 +02:00
private-tx docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
res Add Constantinople eips to the dev (instant_seal) config (#10809) 2019-06-28 16:17:33 +02:00
service updated project to ansi_term 0.11 (#10799) 2019-06-27 13:34:40 +02:00
src Improve logging and cleanup in miner around block sealing (#10745) 2019-07-04 18:03:22 +02:00
state-account Extract AccountDB to account-db (#10839) 2019-07-04 17:50:31 +02:00
sync Improve logging and cleanup in miner around block sealing (#10745) 2019-07-04 18:03:22 +02:00
types Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
vm Cleanup unused vm dependencies (#10787) 2019-06-26 14:17:17 +02:00
wasm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
Cargo.toml Extract AccountDB to account-db (#10839) 2019-07-04 17:50:31 +02:00