Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Move more code into state-account #10840

Merged
merged 75 commits into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from 71 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
f144f88
WIP move errors, pod_account and state account to own crates
dvdplm Jul 3, 2019
c8bf87f
Sort out dependencies, fix broken code and tests
dvdplm Jul 4, 2019
47bc6fb
remove template line
dvdplm Jul 4, 2019
f8756bb
fix review feedback
dvdplm Jul 4, 2019
d54ebab
Remove test-only AccountDBMut::new
dvdplm Jul 4, 2019
7792810
Extract AccountDB to account-db
dvdplm Jul 4, 2019
a55ca1e
Move Substate to state-account – wip
dvdplm Jul 4, 2019
201dac7
Add lib.rs
dvdplm Jul 4, 2019
e23acad
cleanup
dvdplm Jul 4, 2019
b7c7aae
Merge branch 'master' into dp/chore/extricate-account-db-into-own-crate
dvdplm Jul 4, 2019
e0701e4
test failure
dvdplm Jul 4, 2019
b42d16a
test failure 2
dvdplm Jul 4, 2019
e45d13f
third time's the charm
dvdplm Jul 4, 2019
9553c8c
Merge branch 'dp/chore/extricate-account-db-into-own-crate' into dp/c…
dvdplm Jul 4, 2019
9b60a57
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 4, 2019
c55e6b1
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 4, 2019
1c0722b
Add factories crate
dvdplm Jul 4, 2019
2114c12
Use new factories crate
dvdplm Jul 4, 2019
80ededa
Use factories crate
dvdplm Jul 4, 2019
d9ceaa6
Extract trace
dvdplm Jul 4, 2019
9f3aa73
Fix tests
dvdplm Jul 4, 2019
a6a25ba
Sort out parity-util-mem and parking_lot
dvdplm Jul 4, 2019
44a0904
cleanup
dvdplm Jul 4, 2019
ce3a211
WIP port over the rest of state from ethcore
dvdplm Jul 4, 2019
9ed1d47
Collect all impls for Machine
dvdplm Jul 5, 2019
67332d7
some notes
dvdplm Jul 5, 2019
0a42ea8
Rename pod-account to pod
dvdplm Jul 5, 2019
d9ce43d
Move PodState to pod crate
dvdplm Jul 5, 2019
aebee1d
Use PodState from pod crate
dvdplm Jul 5, 2019
6344f9d
Fix use clause for json tests
dvdplm Jul 5, 2019
63564de
Sort out evmbin
dvdplm Jul 5, 2019
147bde5
Add missing code and use PodState
dvdplm Jul 5, 2019
ceda5f8
Move code that depends on Machine and Executive to own module
dvdplm Jul 5, 2019
fefd892
Sort out cloning errors, fix ethcore to use new state crate
dvdplm Jul 5, 2019
d41f5d4
Do without funky From impls
dvdplm Jul 5, 2019
ffec0b0
Fix ethcore tests
dvdplm Jul 5, 2019
849c73f
Fixes around the project to use new state crate
dvdplm Jul 5, 2019
c772639
Add back the more specific impls of StateOrBlock From conversions
dvdplm Jul 5, 2019
ffda775
Move execute to freestanding function and remove it from trait
dvdplm Jul 5, 2019
2f9526b
cleanup
dvdplm Jul 5, 2019
6f8a1a7
Fix "error: enum variants on type aliases are experimental"
dvdplm Jul 5, 2019
b11e078
Bring back the state tests
dvdplm Jul 5, 2019
06a37ba
remove ethcore/state/mod.rs
dvdplm Jul 5, 2019
10ab382
cleanup
dvdplm Jul 5, 2019
cff4280
cleanup
dvdplm Jul 5, 2019
cf4d8d5
Cleanup state-account errors
dvdplm Jul 5, 2019
e4a5176
Fix more todos
dvdplm Jul 5, 2019
618276d
Add error.rs
dvdplm Jul 5, 2019
4be6fe0
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 5, 2019
3a0db5e
Fixup Cargo.lock
dvdplm Jul 5, 2019
a61f135
Smaller ethcore API is fine
dvdplm Jul 5, 2019
14e475f
Add `to-pod-full` feature to state-account
dvdplm Jul 5, 2019
6d0df41
Fix a few more test failures
dvdplm Jul 5, 2019
5363b45
Fix RPC test build
dvdplm Jul 6, 2019
234e986
Baptize the new trait
dvdplm Jul 6, 2019
7eb04e0
Remove resolved TODOs
dvdplm Jul 6, 2019
0cab314
Rename state-account to account-state
dvdplm Jul 6, 2019
a42720b
Do not re-export the trace crate
dvdplm Jul 6, 2019
515abdf
Don't export state_db from ethcore
dvdplm Jul 6, 2019
e3d98b7
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 6, 2019
081e678
Let private-tx use StateDB. :(
dvdplm Jul 6, 2019
659440a
Remove ethcore/src/pod_state.rs
dvdplm Jul 6, 2019
2f839f8
Inner type does not need to be pub/pub(crate)
dvdplm Jul 7, 2019
df23dcc
optimise imports
dvdplm Jul 7, 2019
e23cb6a
Revert "Inner type does not need to be pub/pub(crate)"
dvdplm Jul 7, 2019
de2aa80
Move DatabaseExtras to ethcore-blockchain
dvdplm Jul 7, 2019
b4ea86a
Add database_extra module to ethcore-blockchain
dvdplm Jul 7, 2019
1cf8254
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 7, 2019
a57517c
Remove to-pod-full feature
dvdplm Jul 7, 2019
75efc47
Merge branch 'master' into dp/chore/extricate-state-backend
dvdplm Jul 8, 2019
994424e
Sort out the merge
dvdplm Jul 8, 2019
dda55bd
sort imports
dvdplm Jul 8, 2019
268940b
address grumbles
dvdplm Jul 8, 2019
20cb69c
rename crate
dvdplm Jul 8, 2019
445b0a1
address more grumbles
dvdplm Jul 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 92 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions ethcore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ethereum-types = "0.6.0"
ethjson = { path = "../json" }
ethkey = { path = "../accounts/ethkey" }
evm = { path = "evm" }
factories = { path = "factories" }
futures = "0.1"
hash-db = "0.12.4"
parity-util-mem = "0.1"
Expand All @@ -46,12 +47,11 @@ log = "0.4"
lru-cache = "0.1"
macros = { path = "../util/macros" }
memory-cache = { path = "../util/memory-cache" }
memory-db = "0.12.4"
num_cpus = "1.2"
parity-bytes = "0.1"
parity-snappy = "0.1"
parking_lot = "0.8"
pod-account = { path = "pod-account" }
pod = { path = "pod" }
trie-db = "0.12.4"
patricia-trie-ethereum = { path = "../util/patricia-trie-ethereum" }
rand = "0.6"
Expand All @@ -61,16 +61,16 @@ rlp_derive = { path = "../util/rlp-derive" }
rustc-hex = "1.0"
serde = "1.0"
serde_derive = "1.0"
state-account = { path = "state-account" }
account-state = { path = "account-state" }
stats = { path = "../util/stats" }
tempdir = { version = "0.3", optional = true }
time-utils = { path = "../util/time-utils" }
trace = { path = "trace" }
trace-time = "0.1"
triehash-ethereum = { version = "0.2", path = "../util/triehash-ethereum" }
unexpected = { path = "../util/unexpected" }
using_queue = { path = "../miner/using-queue" }
vm = { path = "vm" }
wasm = { path = "wasm" }
rand_xorshift = "0.1.1"

[dev-dependencies]
Expand Down Expand Up @@ -108,15 +108,13 @@ evm-debug-tests = ["evm-debug", "evm/evm-debug-tests"]
# EVM debug traces are printed.
slow-blocks = []
# Run JSON consensus tests.
json-tests = ["env_logger", "test-helpers", "to-pod-full"]
json-tests = ["env_logger", "test-helpers"]
# Skip JSON consensus tests with pending issues.
ci-skip-tests = []
# Run memory/cpu heavy tests.
test-heavy = []
# Compile test helpers
test-helpers = ["tempdir", "kvdb-rocksdb", "blooms-db"]
# Enables slow 'to-pod-full' method for use in tests and evmbin.
to-pod-full = []

[[bench]]
name = "builtin"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
[package]
description = "Ethereum accounts, keeps track of changes to the code and storage."
name = "state-account"
description = "Ethereum accounts, keeps track of changes to the code and storage"
name = "account-state"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2018"

[dependencies]
common-types = { path = "../types"}
derive_more = "0.15.0"
ethereum-types = "0.6.0"
ethtrie = { package = "patricia-trie-ethereum", path = "../../util/patricia-trie-ethereum" }
evm = { path = "../evm" }
dvdplm marked this conversation as resolved.
Show resolved Hide resolved
factories = { path = "../factories" }
hash-db = "0.12.4"
journaldb = { path = "../../util/journaldb" }
keccak-hash = "0.2.0"
keccak-hasher = { path = "../../util/keccak-hasher" }
kvdb = "0.1.0"
log = "0.4"
lru-cache = "0.1.2"
memory-db = "0.12.4"
parity-bytes = "0.1.0"
pod-account = { path = "../pod-account" }
parity-util-mem = "0.1.0"
parking_lot = "0.8.0"
pod = { path = "../pod" }
rlp = "0.4.0"
serde = { version = "1.0", features = ["derive"] }
trace = { path = "../trace" }
trie-db = "0.12.4"
vm = { path = "../vm" }

[dev-dependencies]
account-db = { path = "../account-db" }
rlp_compress = { path = "../../util/rlp-compress" }
journaldb = { path = "../../util/journaldb" }
parity-bytes = "0.1.0"
rlp_compress = { path = "../../util/rlp-compress" }
Loading