openethereum/util
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
..
bloom ethcore-bloom-journal updated to 2018 (#10804) 2019-06-27 14:34:07 +02:00
blooms-db Updated blooms-db to rust 2018 and removed redundant deps (#10785) 2019-06-26 18:24:32 +08:00
dir Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
EIP-712 Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
fake-fetch misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
fastmap Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
fetch update ring to 0.14 (#10262) 2019-02-06 17:53:34 +01:00
io misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
journaldb Improve logging and cleanup in miner around block sealing (#10745) 2019-07-04 18:03:22 +02:00
keccak-hasher Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
len-caching-lock misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
macros misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
memory-cache Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
migration-rocksdb misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
network Die error_chain, die (#10747) 2019-06-17 08:44:59 +02:00
network-devp2p logs (#10817) 2019-07-04 14:59:37 +02:00
panic-hook panic_hook module uses eprintln instead of raw stderr interface (#10426) 2019-02-27 09:48:40 +00:00
patricia-trie-ethereum Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
registrar Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
rlp-compress Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
rlp-derive Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
runtime misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
stats misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
time-utils fix(time-utils): add missing license (#10497) 2019-03-20 16:01:38 +01:00
triehash-ethereum Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
unexpected misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
version Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00