Files
pezkuwi-subxt/substrate/client/block-builder/Cargo.toml
T
Bastian Köcher 4f7f312be5 Move create_inherents into the block-builder (#6553)
* Move `create_inherents` into the block-builder

This moves the `create_inherents` call into the block-builder. This has
the advantage that `create_inherents` will be able to reuse the same
context that will be used when applying the extrinsics and we also save
one call to `on_initialize`. To make sure that `create_inherents` does
not modify any state, we execute it in a transaction that is
rolled-back after doing the runtime call.

* Feedback and build fix

* Update primitives/runtime/src/lib.rs

Co-authored-by: Sergei Shulepov <sergei@parity.io>

* Update client/block-builder/src/lib.rs

Co-authored-by: Sergei Shulepov <sergei@parity.io>
2020-07-02 15:17:14 +02:00

30 lines
1.3 KiB
TOML

[package]
name = "sc-block-builder"
version = "0.8.0-rc4"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
description = "Substrate block builder"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-state-machine = { version = "0.8.0-rc4", path = "../../primitives/state-machine" }
sp-runtime = { version = "2.0.0-rc4", path = "../../primitives/runtime" }
sp-api = { version = "2.0.0-rc4", path = "../../primitives/api" }
sp-consensus = { version = "0.8.0-rc4", path = "../../primitives/consensus/common" }
sp-blockchain = { version = "2.0.0-rc4", path = "../../primitives/blockchain" }
sp-core = { version = "2.0.0-rc4", path = "../../primitives/core" }
sp-block-builder = { version = "2.0.0-rc4", path = "../../primitives/block-builder" }
sp-inherents = { version = "2.0.0-rc4", path = "../../primitives/inherents" }
sc-client-api = { version = "2.0.0-rc4", path = "../api" }
codec = { package = "parity-scale-codec", version = "1.3.1", features = ["derive"] }
[dev-dependencies]
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
sp-trie = { version = "2.0.0-rc4", path = "../../primitives/trie" }