forked from openethereum/parity-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract snapshot to own crate (openethereum#11010)
* Move snapshot to own crate Sort out imports * WIP cargo toml * Make snapshotting generic over the client Sort out tests * Sort out types from blockchain and client * Sort out sync * Sort out imports and generics * Sort out main binary * Fix sync test-helpers * Sort out import for secret-store * Sort out more imports * Fix easy todos * cleanup * Cleanup * remove unneded workspace member * cleanup * Sort out test-helpers dependency on account-db * Update ethcore/client-traits/src/lib.rs Co-Authored-By: Niklas Adolfsson <[email protected]> * Update ethcore/snapshot/Cargo.toml
- Loading branch information
Showing
68 changed files
with
620 additions
and
479 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,13 @@ version = "1.12.0" | |
authors = ["Parity Technologies <[email protected]>"] | ||
|
||
[dependencies] | ||
account-db = { path = "account-db" } | ||
account-db = { path = "account-db", optional = true } | ||
account-state = { path = "account-state" } | ||
ansi_term = "0.11" | ||
basic-authority = { path = "./engines/basic-authority", optional = true} # used by test-helpers feature | ||
blooms-db = { path = "../util/blooms-db", optional = true } | ||
client-traits = { path = "./client-traits" } | ||
common-types = { path = "types" } | ||
crossbeam-utils = "0.6" | ||
engine = { path = "./engine" } | ||
env_logger = { version = "0.5", optional = true } | ||
ethabi = "8.0" | ||
|
@@ -24,7 +23,6 @@ ethash = { path = "../ethash", optional = true } | |
ethjson = { path = "../json", optional = true } | ||
ethkey = { path = "../accounts/ethkey", optional = true } | ||
ethcore-blockchain = { path = "./blockchain" } | ||
ethcore-bloom-journal = { path = "../util/bloom" } | ||
ethcore-call-contract = { path = "./call-contract" } | ||
ethcore-db = { path = "./db" } | ||
ethcore-io = { path = "../util/io" } | ||
|
@@ -38,7 +36,6 @@ hash-db = "0.15.0" | |
itertools = "0.5" | ||
journaldb = { path = "../util/journaldb" } | ||
keccak-hash = "0.2.0" | ||
keccak-hasher = { path = "../util/keccak-hasher" } | ||
kvdb = "0.1" | ||
kvdb-memorydb = { version = "0.1", optional = true } | ||
kvdb-rocksdb = { version = "0.1.3", optional = true } | ||
|
@@ -47,9 +44,7 @@ log = "0.4" | |
macros = { path = "../util/macros", optional = true } | ||
machine = { path = "./machine" } | ||
memory-cache = { path = "../util/memory-cache" } | ||
num_cpus = "1.2" | ||
parity-bytes = "0.1" | ||
parity-snappy = "0.1" | ||
parking_lot = "0.8" | ||
pod = { path = "pod", optional = true } | ||
trie-db = "0.15.0" | ||
|
@@ -62,6 +57,7 @@ rlp_derive = { path = "../util/rlp-derive" } | |
rustc-hex = { version = "1", optional = true } | ||
serde = "1.0" | ||
serde_derive = "1.0" | ||
snapshot = { path = "snapshot" } | ||
spec = { path = "spec" } | ||
state-db = { path = "state-db" } | ||
tempdir = { version = "0.3", optional = true } | ||
|
@@ -75,6 +71,7 @@ verification = { path = "./verification" } | |
vm = { path = "vm" } | ||
|
||
[dev-dependencies] | ||
account-db = { path = "account-db" } | ||
blooms-db = { path = "../util/blooms-db" } | ||
ethcore-builtin = { path = "./builtin" } | ||
criterion = "0.2" | ||
|
@@ -129,7 +126,20 @@ ci-skip-tests = [] | |
test-heavy = [] | ||
# Compile test helpers | ||
# note[dvdplm]: "basic-authority/test-helpers" is needed so that `generate_dummy_client_with_spec` works | ||
test-helpers = ["tempdir", "kvdb-memorydb", "kvdb-rocksdb", "blooms-db", "ethash", "ethjson", "ethkey", "macros", "pod", "rustc-hex", "basic-authority/test-helpers"] | ||
test-helpers = [ | ||
"account-db", | ||
"blooms-db", | ||
"ethash", | ||
"ethjson", | ||
"ethkey", | ||
"kvdb-memorydb", | ||
"kvdb-rocksdb", | ||
"macros", | ||
"pod", | ||
"rustc-hex", | ||
"tempdir", | ||
"basic-authority/test-helpers" | ||
] | ||
|
||
[[bench]] | ||
name = "builtin" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.