openethereum/ethcore/blockchain/src
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
..
best_block.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
block_info.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
blockchain.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
cache.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
config.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
generator.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
import_route.rs Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
lib.rs Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
update.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00