openethereum/parity
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
..
cli Remove support for hardware wallets (#10678) 2019-05-21 10:46:57 +02:00
db misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
light_helpers removed EthEngine alias (#10805) 2019-06-28 10:18:18 +02:00
logger updated project to ansi_term 0.11 (#10799) 2019-06-27 13:34:40 +02:00
account_utils.rs Upgrade ethereum types (#10670) 2019-06-03 15:36:21 +02:00
account.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
blockchain.rs [ethcore] remove error_chain (#10616) 2019-05-06 15:06:20 +02:00
cache.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
configuration.rs Don't repeat the logic from Default impl (#10813) 2019-06-29 16:43:57 +08:00
deprecated.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
export_hardcoded_sync.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
helpers.rs Die error_chain, die (#10747) 2019-06-17 08:44:59 +02:00
informant.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
ipfs.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
lib.rs Add a way to signal shutdown to snapshotting threads (#10744) 2019-06-19 10:13:09 +02:00
main.rs parity/main.rs uses eprintln instead of raw stderr interface (#10427) 2019-02-27 11:41:03 +03:00
modules.rs RPC: Implements eth_subscribe("syncing") (#10311) 2019-04-02 17:13:55 +02:00
params.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
presale.rs Upgrade to parity-crypto 0.4 (#10650) 2019-05-28 07:50:10 +02:00
rpc_apis.rs Merge Notifier and TransactionsPoolNotifier (#10591) 2019-06-04 12:35:33 +01:00
rpc.rs Secure WS-RPC: grant access to all apis (#10246) 2019-02-08 14:11:55 +01:00
run.rs Add a way to signal shutdown to snapshotting threads (#10744) 2019-06-19 10:13:09 +02:00
secretstore.rs Allow CORS requests in Secret Store API (#10584) 2019-04-20 07:31:37 +02:00
signer.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
snapshot.rs Better logging when backfilling ancient blocks fail (#10796) 2019-07-01 14:41:45 +02:00
stratum.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
upgrade.rs Add message to IO errors (#10324) 2019-02-18 20:39:38 +03:00
user_defaults.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00
whisper.rs misc: bump license header to 2019 (#10135) 2019-01-07 11:33:07 +01:00