openethereum/ethcore
David 9e77e7e193
Code cleanup in the sync module ()
* Code cleanup

`flush_queue()` is mostly used by tests
remove some unused params
avoid clones in a few places

* Consistent params naming
Consistent use of log calls

* Fix todo

It'a actually not trivial to find out the size of these collections, likely we keep blocks from all kinds of forks in the `self.blocks`/`self.parents` collections and there's no good way to anticipate how many blocks we're going to drain. Most of the time we end up draining 0 blocks and then we drain a whole bunch of them, up to 30 000.

* Revert making flush_queue() test-only
Address review grumbles

* More review grumbles

* fix build
2020-03-09 20:04:50 +01:00
..
account-db license update () 2020-03-05 12:19:39 +01:00
account-state license update () 2020-03-05 12:19:39 +01:00
benches license update () 2020-03-05 12:19:39 +01:00
block-gas-limit license update () 2020-03-05 12:19:39 +01:00
block-reward license update () 2020-03-05 12:19:39 +01:00
blockchain initial cleanup () 2020-03-09 15:07:15 +01:00
builtin license update () 2020-03-05 12:19:39 +01:00
call-contract initial cleanup () 2020-03-09 15:07:15 +01:00
client-traits Code cleanup in the sync module () 2020-03-09 20:04:50 +01:00
db initial cleanup () 2020-03-09 15:07:15 +01:00
engine license update () 2020-03-05 12:19:39 +01:00
engines license update () 2020-03-05 12:19:39 +01:00
evm initial cleanup () 2020-03-09 15:07:15 +01:00
executive-state license update () 2020-03-05 12:19:39 +01:00
light initial cleanup () 2020-03-09 15:07:15 +01:00
machine license update () 2020-03-05 12:19:39 +01:00
node-filter initial cleanup () 2020-03-09 15:07:15 +01:00
pod license update () 2020-03-05 12:19:39 +01:00
private-tx license update () 2020-03-05 12:19:39 +01:00
res Remove references to parity-ethereum () 2020-03-01 23:40:59 +01:00
service initial cleanup () 2020-03-09 15:07:15 +01:00
snapshot license update () 2020-03-05 12:19:39 +01:00
spec initial cleanup () 2020-03-09 15:07:15 +01:00
src Code cleanup in the sync module () 2020-03-09 20:04:50 +01:00
state-db license update () 2020-03-05 12:19:39 +01:00
sync Code cleanup in the sync module () 2020-03-09 20:04:50 +01:00
trace initial cleanup () 2020-03-09 15:07:15 +01:00
trie-vm-factories license update () 2020-03-05 12:19:39 +01:00
types initial cleanup () 2020-03-09 15:07:15 +01:00
verification ethcore: cleanup after () 2020-03-05 16:59:59 +01:00
vm license update () 2020-03-05 12:19:39 +01:00
wasm license update () 2020-03-05 12:19:39 +01:00
Cargo.toml initial cleanup () 2020-03-09 15:07:15 +01:00