openethereum/ethcore/src/snapshot
David 5dc5be1e58
Better logging when backfilling ancient blocks fail (#10796)
* Better logging when backfilling ancient blocks fail
Print total blocks imported, closes #10792

* `finalize()` doesn't need Engine
Pull out call to migrated_blocks() from replace_client_db()

* More logs

* Clarify that the percentage may be misleading

* Remove replace_client_db() and replace with a straight call to restore_db()

* Include the parent_hash in UnlinkedAncientBlockChain errors

* Add a new RestorationStatus varian: Finalizing (as it can take a loooong while)
Call abort_restore() when restoration fails

* Add missing cases for new variant

* typos

* Typo and derive Debug

* Do not attempt to salvage existing blocks unless they form a complete chain back to genesis

* Fix test

* Revert "Fix test"

This reverts commit f027d4b4cb7b6c23fceec528c1711886ba9cfe4e.

* Fix test again

* Update comment

* Be careful about locks

* fix test failure

* Do not defer returning an error when the chain is broken

* Review feedback

* no hex formatting for Option
2019-07-01 14:41:45 +02:00
..
consensus Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
tests Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
account.rs Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
block.rs Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
error.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
io.rs Add a way to signal shutdown to snapshotting threads (#10744) 2019-06-19 10:13:09 +02:00
mod.rs removed EthEngine alias (#10805) 2019-06-28 10:18:18 +02:00
service.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
traits.rs Add a way to signal shutdown to snapshotting threads (#10744) 2019-06-19 10:13:09 +02:00
watcher.rs Fix deprectation warnings on nightly (#10746) 2019-06-14 18:48:35 +02:00