openethereum/parity
Robert Habermeier 76a7246369 Snapshot creation and restoration (#1679)
* to_rlp takes self by-reference

* clean up some derefs

* out-of-order insertion for blockchain

* implement block rebuilder without verification

* group block chunk header into struct

* block rebuilder does verification

* integrate snapshot service with client service; flesh out implementation more

* initial implementation of snapshot service

* remove snapshottaker trait

* snapshot writer trait with packed and loose implementations

* write chunks using "snapshotwriter" in service

* have snapshot taking use snapshotwriter

* implement snapshot readers

* back up client dbs when replacing

* use snapshot reader in snapshot service

* describe offset format

* use new get_db_path in parity, allow some errors in service

* blockchain formatting

* implement parity snapshot

* implement snapshot restore

* force blocks to be submitted in order

* fix bug loading block hashes in packed reader

* fix seal field loading

* fix uncle hash computation

* fix a few bugs

* store genesis state in db. reverse block chunk order in packed writer

* allow out-of-order import for blocks

* bring restoration types together

* only snapshot the last 30000 blocks

* restore into overlaydb instead of journaldb

* commit version to database

* use memorydbs and commit directly

* fix trie test compilation

* fix failing tests

* sha3_null_rlp, not H256::zero

* move overlaydb to ref_overlaydb, add new overlaydb without on-disk rc

* port archivedb to new overlaydb

* add deletion mode tests for overlaydb

* use new overlaydb, check state root at end

* share chain info between state and block snapshotting

* create blocks snapshot using blockchain directly

* allow snapshot from arbitrary block, remove panickers from snapshot creation

* begin test framework

* blockchain chunking test

* implement stateproducer::tick

* state snapshot test

* create block and state chunks concurrently, better restoration informant

* fix tests

* add deletion mode tests for overlaydb

* address comments

* more tests

* Fix up tests.

* remove a few printlns

* add a little more documentation to `commit`

* fix tests

* fix ref_overlaydb test names

* snapshot command skeleton

* revert ref_overlaydb renaming

* reimplement snapshot commands

* fix many errors

* everything but inject

* get ethcore compiling

* get snapshot tests passing again

* instrument snapshot commands again

* fix fallout from other changes, mark snapshots as experimental

* optimize injection patterns

* do two injections

* fix up tests

* take snapshots from 1000 blocks efore

* address minor comments

* fix a few io crate related errors

* clarify names about total difficulty

[ci skip]
2016-08-05 17:00:46 +02:00
..
account.rs Fixing account naming (#1810) 2016-08-03 17:58:22 +02:00
blockchain.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
cache.rs cache manager and clearing tracing cache (#1769) 2016-07-30 15:19:27 -07:00
cli.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
configuration.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
dapps.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
deprecated.rs fix deprecated typo 2016-08-05 11:06:01 +02:00
dir.rs Single DB (#1741) 2016-07-28 23:46:24 +02:00
helpers.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
informant.rs Min and Max peers setting 2016-07-29 17:30:02 +02:00
io_handler.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
main.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
migration.rs Bumping clippy & fixing warnings (#1823) 2016-08-03 19:01:48 +02:00
modules.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
params.rs Single DB (#1741) 2016-07-28 23:46:24 +02:00
presale.rs cli overhaul (#1600) 2016-07-25 16:09:47 +02:00
rpc_apis.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
rpc.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
run.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
signer.rs Split IO and network crates (#1828) 2016-08-05 10:32:04 +02:00
snapshot.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
sync.rs moving to the single binary (#1710) 2016-07-26 00:21:08 +02:00
upgrade.rs Multi-mode logging. (#1643) 2016-07-17 23:00:57 +02:00
url.rs Changing macos impl 2016-06-24 12:30:54 +02:00