Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 3ef4b34

Browse files
authored
Use state machine externalities in validation runtime. (#214)
* test * switch to branch * Use modified. * Use sp_externalities environmental primitives * Change to latest no_std version, add missing host function boilerplate. * remove comment (was used for debugging). * fixes * with_externalities factor * Read merged change from overlay.
1 parent 182109e commit 3ef4b34

File tree

3 files changed

+340
-226
lines changed

3 files changed

+340
-226
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ sp-core = { git = "https://github.com/paritytech/substrate", default-features =
2121
sp-io = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
2222
frame-executive = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
2323
sp-trie = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
24+
sp-state-machine = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
25+
sp-externalities = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
2426

2527
# Polkadot dependencies
2628
parachain = { package = "polkadot-parachain", git = "https://github.com/paritytech/polkadot", default-features = false, features = [ "wasm-api" ] , branch = "master" }
@@ -48,6 +50,8 @@ std = [
4850
"memory-db/std",
4951
"hash-db/std",
5052
"trie-db/std",
53+
"sp-state-machine/std",
54+
"sp-externalities/std",
5155
"sp-trie/std",
5256
"parachain/std",
5357
]

0 commit comments

Comments
 (0)