openethereum/ethcore
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
..
benches Removed machine abstraction from ethcore (#10791) 2019-06-26 14:16:05 +02:00
blockchain Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
call-contract docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
db Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
evm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
light removed EthEngine alias (#10805) 2019-06-28 10:18:18 +02:00
node-filter docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
private-tx docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
res Add Constantinople eips to the dev (instant_seal) config (#10809) 2019-06-28 16:17:33 +02:00
service updated project to ansi_term 0.11 (#10799) 2019-06-27 13:34:40 +02:00
src Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
sync Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
types Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
vm Cleanup unused vm dependencies (#10787) 2019-06-26 14:17:17 +02:00
wasm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
Cargo.toml Add filtering capability to parity_pendingTransactions (issue 8269) (#10506) 2019-06-28 09:27:59 +01:00