Implement change trie for child trie. (#3122)
* Initial implementation, some redundancy is awkward and there is some useless computation (but there is a pending pr for that). Next are tests. * Minimal tests and fix extend child. * implement iterator for change child trie. * prune child trie. * Fix pruning test. * bump spec version. * Avoid empty child trie (could also be checked before) * tabs. * Fix child digest overriding each others. * Restore doc deleted on merge. * Check correct child value on extrinsics build. * Revert runtime version update.
Showing
- substrate/core/client/db/src/lib.rs 4 additions, 0 deletionssubstrate/core/client/db/src/lib.rs
- substrate/core/client/db/src/storage_cache.rs 4 additions, 0 deletionssubstrate/core/client/db/src/storage_cache.rs
- substrate/core/client/src/client.rs 14 additions, 3 deletionssubstrate/core/client/src/client.rs
- substrate/core/client/src/light/backend.rs 13 additions, 0 deletionssubstrate/core/client/src/light/backend.rs
- substrate/core/client/src/light/fetcher.rs 10 additions, 4 deletionssubstrate/core/client/src/light/fetcher.rs
- substrate/core/network/src/chain.rs 4 additions, 2 deletionssubstrate/core/network/src/chain.rs
- substrate/core/network/src/protocol.rs 16 additions, 4 deletionssubstrate/core/network/src/protocol.rs
- substrate/core/network/src/protocol/light_dispatch.rs 5 additions, 2 deletionssubstrate/core/network/src/protocol/light_dispatch.rs
- substrate/core/network/src/protocol/message.rs 2 additions, 0 deletionssubstrate/core/network/src/protocol/message.rs
- substrate/core/rpc/src/state/state_full.rs 1 addition, 1 deletionsubstrate/core/rpc/src/state/state_full.rs
- substrate/core/state-machine/src/backend.rs 13 additions, 1 deletionsubstrate/core/state-machine/src/backend.rs
- substrate/core/state-machine/src/changes_trie/build.rs 265 additions, 44 deletionssubstrate/core/state-machine/src/changes_trie/build.rs
- substrate/core/state-machine/src/changes_trie/changes_iterator.rs 91 additions, 9 deletions...e/core/state-machine/src/changes_trie/changes_iterator.rs
- substrate/core/state-machine/src/changes_trie/input.rs 39 additions, 0 deletionssubstrate/core/state-machine/src/changes_trie/input.rs
- substrate/core/state-machine/src/changes_trie/mod.rs 25 additions, 4 deletionssubstrate/core/state-machine/src/changes_trie/mod.rs
- substrate/core/state-machine/src/changes_trie/prune.rs 59 additions, 16 deletionssubstrate/core/state-machine/src/changes_trie/prune.rs
- substrate/core/state-machine/src/changes_trie/storage.rs 25 additions, 3 deletionssubstrate/core/state-machine/src/changes_trie/storage.rs
- substrate/core/state-machine/src/ext.rs 4 additions, 4 deletionssubstrate/core/state-machine/src/ext.rs
- substrate/core/state-machine/src/overlayed_changes.rs 47 additions, 30 deletionssubstrate/core/state-machine/src/overlayed_changes.rs
- substrate/core/state-machine/src/proving_backend.rs 4 additions, 0 deletionssubstrate/core/state-machine/src/proving_backend.rs
Please register or sign in to comment