openethereum/ethcore/sync/src
David 9e77e7e193
Code cleanup in the sync module (#11552)
* 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
..
chain initial cleanup (#11542) 2020-03-09 15:07:15 +01:00
light_sync license update (#11543) 2020-03-05 12:19:39 +01:00
res Support millisecond timestamp for instant seal engine (#9469) 2018-09-06 11:38:00 +02:00
tests license update (#11543) 2020-03-05 12:19:39 +01:00
api.rs license update (#11543) 2020-03-05 12:19:39 +01:00
block_sync.rs Code cleanup in the sync module (#11552) 2020-03-09 20:04:50 +01:00
blocks.rs Code cleanup in the sync module (#11552) 2020-03-09 20:04:50 +01:00
lib.rs license update (#11543) 2020-03-05 12:19:39 +01:00
private_tx.rs license update (#11543) 2020-03-05 12:19:39 +01:00
snapshot_sync.rs license update (#11543) 2020-03-05 12:19:39 +01:00
sync_io.rs license update (#11543) 2020-03-05 12:19:39 +01:00
transactions_stats.rs license update (#11543) 2020-03-05 12:19:39 +01:00