Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
af6a8fd
init from other pr, have some code up to client (not client db),
cheme Sep 23, 2019
4db0a7f
Dumb state_db implementation, mostly boiler plate, but cannot work as
cheme Sep 24, 2019
19df6e9
TODO2 variant for in memory
cheme Sep 25, 2019
3989fea
traits in place, still need to parameterized with blocknb &| branchix
cheme Sep 25, 2019
6a6606d
passing block hash as state in a convoluted way
cheme Sep 25, 2019
934c800
passing block hash as state in a convoluted way
cheme Sep 25, 2019
5d3d47e
Recover previous branch index code without persistence.
cheme Sep 25, 2019
aeab064
let's remove branch range set of changed and removed in next commit
cheme Sep 26, 2019
57e862e
removed delta in branch (not needed if no persistence)
cheme Sep 26, 2019
4edbf27
Before using range instead of hash (we move range to upper client on
cheme Sep 26, 2019
91b87d7
use also block number for query (when not in statedb we need number).
cheme Sep 26, 2019
966a09f
Fixing finalize state algo.
cheme Sep 27, 2019
a37a32f
remove keys from commit set, this likely indicates broken code, will
cheme Sep 27, 2019
4714b70
put a client test, for rest of test reset_storage and genesis build
cheme Sep 27, 2019
5e90b20
Get needed component from branch history-data
cheme Oct 1, 2019
f6956b1
use history from utils
cheme Oct 1, 2019
9ba8057
Test issue is that query on remove hash do not work
cheme Oct 1, 2019
31c1ee3
test commit set
cheme Oct 2, 2019
6209f4d
fix unpin gc
cheme Oct 2, 2019
70f69b6
missing offstate prunnig handling
cheme Oct 2, 2019
6803c86
previous pruning did not make sense, switch to only storing touched key
cheme Oct 2, 2019
2497575
Figure out pruning (see prune_one/prune_two tests).
cheme Oct 3, 2019
e86fdd2
end fixing pruning test, remainings root lib tests to adjust
cheme Oct 3, 2019
e48cf43
fix gc call block index.
cheme Oct 4, 2019
0e3c65e
state_db tests passing.
cheme Oct 4, 2019
13ea088
fix underflow
cheme Oct 4, 2019
92c699c
before switching to absolute indexing (option<u64> to u64).
cheme Oct 4, 2019
bf79879
complete first test in client db, new todo.
cheme Oct 4, 2019
3913ba7
Merge branch 'master' into chain-aux-merge
cheme Oct 4, 2019
4dc2c8d
serialized with default
cheme Oct 7, 2019
03080c4
serialized with default is useless
cheme Oct 7, 2019
8eb5e07
few warning fix
cheme Oct 7, 2019
c89274d
simplify state machine offstate traits, TODO2 will be simple hashmap
cheme Oct 7, 2019
249770b
further simplify
cheme Oct 7, 2019
69fef43
Remove stub state machine implementation.
cheme Oct 7, 2019
a547560
init offstate for tests, but tests will only be interesting with chil…
cheme Oct 7, 2019
397d510
rem todos
cheme Oct 7, 2019
c133a0b
compact casts
cheme Oct 7, 2019
f197d7d
compact casts
cheme Oct 7, 2019
9846613
quick prune test
cheme Oct 7, 2019
d51e98f
break some lines
cheme Oct 7, 2019
fff7cb5
fix
cheme Oct 7, 2019
d55211a
split commit set to have offstate pruning only when needed.
cheme Oct 8, 2019
27ca685
Fix logic of pruning in client (prior it did not take account of last
cheme Oct 8, 2019
64b4102
No need for special revert unless we create archive mode with pruning
cheme Oct 8, 2019
5072f85
Do not keep deletion in branch storage.
cheme Oct 8, 2019
8f8ecc9
sed renaming of offstate to more generic and less incorect 'kv' (as key
cheme Oct 8, 2019
35bc11e
switch overlay transaction to the inner hashmap storage, only change to
cheme Oct 8, 2019
d111288
Remove commit kv from revert.
cheme Oct 9, 2019
dd9dddb
test db better handling
cheme Oct 9, 2019
df950a5
cleaning pass.
cheme Oct 9, 2019
ae180ed
Slight change to 'into_committed' proto, to allow resolving
cheme Oct 10, 2019
431f93d
add 'kv_store' to state machine backend
cheme Oct 11, 2019
42bbd9d
revert into_committed to previous implementation
cheme Oct 11, 2019
b0dce4a
Merge branch 'master' into chain-aux2
cheme Oct 11, 2019
009f691
Failing tests
cheme Oct 17, 2019
521d72c
Testing canonical window and finalize, plus in a limited way pruning
cheme Oct 17, 2019
64f984e
sanity check on pruning call.
cheme Oct 17, 2019
5ce414c
Merge branch 'master' into chain-aux2
cheme Oct 18, 2019
31400ae
Merge branch 'master' into chain-aux2
cheme Oct 18, 2019
2fcc675
Merge branch 'master' into chain-aux2
cheme Oct 18, 2019
704178b
rename pairs to in_memory when it is not pairs but inmemory storage for
cheme Oct 18, 2019
5b0f4c2
clean client crates code, add a FullStorageContent struct, not
cheme Oct 18, 2019
6dc9ef0
cleaning in state-db
cheme Oct 18, 2019
9ee40a7
end clean state_db
cheme Oct 18, 2019
b3e7d00
clean state-machine
cheme Oct 18, 2019
b642c69
renaming as in state-machine, and use only range
cheme Oct 18, 2019
dd686c1
Move tree implementation state to test.
cheme Oct 18, 2019
7713d8b
Fix get on tree history (and iterator).
cheme Oct 18, 2019
f0909fa
Rename historied to historical
cheme Oct 24, 2019
19f183c
A few renaming and documentation precision.
cheme Oct 28, 2019
4a834dd
Switch test from Vec<u8> to Ser and removing Serialized buf mut variant.
cheme Oct 28, 2019
b4f7805
Merge branch 'master' into chain-aux2
cheme Oct 28, 2019
4268daf
use copy_within
cheme Oct 28, 2019
397a77f
Remove truncate specific implementation.
cheme Oct 28, 2019
6caadf2
Apply documentation suggestions from code review
cheme Oct 29, 2019
7410029
Remove into_owned function.
cheme Oct 29, 2019
5e93dec
Merge branch 'master' into chain-aux2
cheme Oct 31, 2019
979db3f
Merge branch 'master' into chain-aux2
cheme Oct 31, 2019
4ba47b5
Merge branch 'master' into chain-aux2
cheme Nov 2, 2019
2f13d23
Replacing state_machine TrieBackend to more generic StateBackend naming.
cheme Nov 6, 2019
2c1539a
missing file.
cheme Nov 6, 2019
b798762
documentation review suggestions.
cheme Nov 7, 2019
3197afe
Renaming in memory trie field to state (for state db).
cheme Nov 7, 2019
5c94cc9
renaming in memory inner fields.
cheme Nov 9, 2019
7ee11d7
Merge branch 'master' into chain-aux2
cheme Nov 10, 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
11 changes: 11 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ members = [
"core/transaction-pool/graph",
"core/trie",
"core/utils/fork-tree",
"core/utils/historical-data",
"core/utils/wasm-builder",
"core/utils/wasm-builder-runner",
"core/wasm-interface",
Expand Down
1 change: 1 addition & 0 deletions core/client/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ state_db = { package = "substrate-state-db", path = "../../state-db" }
trie = { package = "substrate-trie", path = "../../trie" }
consensus_common = { package = "substrate-consensus-common", path = "../../consensus/common" }
header_metadata = { package = "substrate-header-metadata", path = "../header-metadata" }
historical-data = { path = "../../utils/historical-data" }

[dev-dependencies]
substrate-keyring = { path = "../../keyring" }
Expand Down
Loading