Support custom genesis block (#12291)
* Set genesis block data using the built genesis block * Make resolve_state_version_from_wasm a separate function and some small refactorings Useful for the commit following. * Introduce trait BuildGenesisBlock Substrate users can use this trait to implement their custom genesis block when constructing the client. * Make call_executor test compile * cargo +nightly fmt --all * Fix test * Remove unnecessary clone * FMT * Apply review suggestions * Revert changes to new_full_client() and new_full_parts() signature * Remove needless `Block` type in `resolve_state_version_from_wasm`
Showing
- substrate/bin/node/testing/src/bench.rs 20 additions, 10 deletionssubstrate/bin/node/testing/src/bench.rs
- substrate/client/service/src/builder.rs 41 additions, 18 deletionssubstrate/client/service/src/builder.rs
- substrate/client/service/src/client/call_executor.rs 18 additions, 15 deletionssubstrate/client/service/src/client/call_executor.rs
- substrate/client/service/src/client/client.rs 61 additions, 57 deletionssubstrate/client/service/src/client/client.rs
- substrate/client/service/src/client/genesis.rs 66 additions, 1 deletionsubstrate/client/service/src/client/genesis.rs
- substrate/client/service/src/client/mod.rs 1 addition, 1 deletionsubstrate/client/service/src/client/mod.rs
- substrate/client/service/src/config.rs 17 additions, 0 deletionssubstrate/client/service/src/config.rs
- substrate/client/service/src/lib.rs 4 additions, 1 deletionsubstrate/client/service/src/lib.rs
- substrate/client/service/test/src/client/mod.rs 16 additions, 3 deletionssubstrate/client/service/test/src/client/mod.rs
- substrate/test-utils/client/src/lib.rs 17 additions, 7 deletionssubstrate/test-utils/client/src/lib.rs
Please register or sign in to comment