add system_dryRun (#6300)

* add system_dryRun

* fix build error

* delete unneeded code

* return ApplyExtrinsicResult directly

* line width

* mark dry run unsafe

* line width

* fix test

* add test

* update comment
This commit is contained in:
Xiliang Chen
2020-06-17 08:51:03 +12:00
committed by GitHub
parent 0787b189fa
commit 7d30ae7ba8
6 changed files with 180 additions and 20 deletions
@@ -26,6 +26,8 @@ frame-system-rpc-runtime-api = { version = "2.0.0-rc3", path = "../../../../fram
sp-core = { version = "2.0.0-rc3", path = "../../../../primitives/core" }
sp-blockchain = { version = "2.0.0-rc3", path = "../../../../primitives/blockchain" }
sp-transaction-pool = { version = "2.0.0-rc3", path = "../../../../primitives/transaction-pool" }
sp-block-builder = { version = "2.0.0-rc3", path = "../../../../primitives/block-builder" }
sc-rpc-api = { version = "0.8.0-rc3", path = "../../../../client/rpc-api" }
[dev-dependencies]
substrate-test-runtime-client = { version = "2.0.0-rc3", path = "../../../../test-utils/runtime/client" }