state_machine no_std witness externalities (#6934)

* checkpoint before removing CT from change trie

* before trie backend without tx

* undo

* Started no transaction, but would need using a different root
calculation method, out of the scope of this pr, will roll back.

* Remove NoTransaction.

* partially address review.
dummy stats implementation for no_std.

* Remove ChangeTrieOverlay.

* modified function

* Remove witness_ext

* need noops changes root

* update from cumulus branch

* line break

* remove warning

* line break

* From review: renamings and stats active in no std (except time).

* include cache, exclude change trie cache with individual temporary bad looking
no_std check

* little test

* fuse imports and filter_map prepare_extrinsics_input_inner fold.

* put back ExtInner into Ext, awkward double proto for new function.

* Apply suggestions from code review

* Update primitives/state-machine/Cargo.toml

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
cheme
2020-09-11 12:11:25 +02:00
committed by GitHub
parent 45d26e7419
commit 232a30fdb4
18 changed files with 1209 additions and 794 deletions
+4 -1
View File
@@ -42,6 +42,8 @@ sp-transaction-pool = { version = "2.0.0-rc6", default-features = false, path =
trie-db = { version = "0.22.0", default-features = false }
parity-util-mem = { version = "0.7.0", default-features = false, features = ["primitive-types"] }
sc-service = { version = "0.8.0-rc6", default-features = false, optional = true, features = ["test-helpers"], path = "../../client/service" }
sp-state-machine = { version = "0.8.0-rc6", default-features = false, path = "../../primitives/state-machine" }
sp-externalities = { version = "0.8.0-rc6", default-features = false, path = "../../primitives/externalities" }
# 3rd party
cfg-if = "0.1.10"
@@ -52,7 +54,6 @@ serde = { version = "1.0.101", optional = true, features = ["derive"] }
sc-block-builder = { version = "0.8.0-rc6", path = "../../client/block-builder" }
sc-executor = { version = "0.8.0-rc6", path = "../../client/executor" }
substrate-test-runtime-client = { version = "2.0.0-rc6", path = "./client" }
sp-state-machine = { version = "0.8.0-rc6", path = "../../primitives/state-machine" }
[build-dependencies]
wasm-builder-runner = { version = "1.0.5", package = "substrate-wasm-builder-runner", path = "../../utils/wasm-builder-runner" }
@@ -84,6 +85,8 @@ std = [
"sp-session/std",
"sp-api/std",
"sp-runtime/std",
"sp-externalities/std",
"sp-state-machine/std",
"pallet-babe/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",