Introduce code_substitute (#8898)

This introduces a new field `code_substitute` into the chain spec. This
can be used to substitute the on-chain wasm starting from a given block
until there is another wasm on chain (determined through the
`spec_version`). This can be used to fix broken on chain wasm runtimes.
This commit is contained in:
Bastian Köcher
2021-05-25 16:07:36 +02:00
committed by GitHub
parent a7a326ee07
commit 53e28b98e9
12 changed files with 286 additions and 43 deletions
@@ -1822,7 +1822,7 @@ fn cleans_up_closed_notification_sinks_on_block_import() {
type TestClient = Client<
in_mem::Backend<Block>,
LocalCallExecutor<in_mem::Backend<Block>, sc_executor::NativeExecutor<LocalExecutor>>,
LocalCallExecutor<Block, in_mem::Backend<Block>, sc_executor::NativeExecutor<LocalExecutor>>,
substrate_test_runtime_client::runtime::Block,
substrate_test_runtime_client::runtime::RuntimeApi,
>;