Prerequisites for `validate_block` in Cumulus (#1926)
* Adds benchmark for direct/indirect wasm function calls * Store the benchmark function pointer in a `Cell` * Add some documentation * Make function implementations exchangeable * Add parachain stub * Add macro for registering the `validate_block` function * Make all functions replace-able by unimplemented * Some more refactoring * Adds tests for executing empty parachain block * Work on a new test with empty witness data * Don't exchange `ext_print_*` stuff * Some cleanup and one more function for `validate_block` * More tests and more functions * Fixes after merging master * Use `parity-codec` `derive` feature * CHange implementation of `wasm-nice-panic-message` * Move `parachain` stuff to cumulus * Updated wasm files * Integrate feedback * Switch to `ExchangeableFunction` struct * More fixes * Switch to Cell and panic on multiple replaces * Increase `impl_version` * Fix shifting * Make the API more verbose of `ExchangeableFunction` * Increase `impl_version`
Showing
- substrate/Cargo.lock 18 additions, 17 deletionssubstrate/Cargo.lock
- substrate/core/executor/src/wasm_executor.rs 78 additions, 22 deletionssubstrate/core/executor/src/wasm_executor.rs
- substrate/core/sr-api-macros/benches/bench.rs 14 additions, 1 deletionsubstrate/core/sr-api-macros/benches/bench.rs
- substrate/core/sr-io/Cargo.toml 1 addition, 0 deletionssubstrate/core/sr-io/Cargo.toml
- substrate/core/sr-io/without_std.rs 249 additions, 51 deletionssubstrate/core/sr-io/without_std.rs
- substrate/core/state-machine/src/lib.rs 1 addition, 1 deletionsubstrate/core/state-machine/src/lib.rs
- substrate/core/test-runtime/Cargo.toml 2 additions, 0 deletionssubstrate/core/test-runtime/Cargo.toml
- substrate/core/test-runtime/src/lib.rs 42 additions, 2 deletionssubstrate/core/test-runtime/src/lib.rs
- substrate/core/test-runtime/src/system.rs 30 additions, 18 deletionssubstrate/core/test-runtime/src/system.rs
- substrate/core/test-runtime/wasm/Cargo.lock 52 additions, 13 deletionssubstrate/core/test-runtime/wasm/Cargo.lock
- substrate/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm 0 additions, 0 deletions...known-unknown/release/substrate_test_runtime.compact.wasm
- substrate/node/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/node/runtime/src/lib.rs
- substrate/node/runtime/wasm/Cargo.lock 22 additions, 22 deletionssubstrate/node/runtime/wasm/Cargo.lock
- substrate/node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm 0 additions, 0 deletions.../wasm32-unknown-unknown/release/node_runtime.compact.wasm
- substrate/srml/executive/src/lib.rs 65 additions, 18 deletionssubstrate/srml/executive/src/lib.rs
- substrate/srml/support/src/storage/mod.rs 1 addition, 1 deletionsubstrate/srml/support/src/storage/mod.rs
- substrate/srml/system/src/lib.rs 1 addition, 2 deletionssubstrate/srml/system/src/lib.rs
Please register or sign in to comment