openethereum/ethcore/src/types
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
..
trace_types Fix up the VM trace. 2016-08-03 20:07:30 +02:00
account_diff.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
block_import_error.rs dedicated types 2016-07-01 21:33:59 +03:00
block_queue_info.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
block_status.rs Moving all Client public API types to separate mod & binary serialization codegen for that mod (#1051) 2016-05-16 18:33:32 +02:00
blockchain_info.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
call_analytics.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
executed.rs Supporting blockid in eth_call and trace_call/trace_raw (#1837) 2016-08-04 18:17:21 +02:00
filter.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
ids.rs Supporting blockid in eth_call and trace_call/trace_raw (#1837) 2016-08-04 18:17:21 +02:00
log_entry.rs Moving all Client public API types to separate mod & binary serialization codegen for that mod (#1051) 2016-05-16 18:33:32 +02:00
mod.rs drying ethcore 2016-08-01 19:39:53 +02:00
mod.rs.in Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
receipt.rs mostly purge x! from ethcore 2016-05-31 16:59:01 +02:00
state_diff.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
trace_filter.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00
transaction.rs Fixing compilation on latest nightly (#1736) 2016-07-27 17:12:14 +02:00
transaction_import.rs ethcore finished 2016-07-01 22:34:50 +03:00
tree_route.rs Client IPC Interface (#1493) 2016-07-07 09:39:32 +02:00