substrate-test-runtime migrated to "pure" frame runtime (#13737)
* substrate-test-runtime migrated to pure-frame based * test block builder: helpers added * simple renaming * basic_authorship test adjusted * block_building storage_proof test adjusted * babe: tests: should_panic expected added * babe: tests adjusted ConsensusLog::NextEpochData is now added by pallet_babe as pallet_babe::SameAuthoritiesForever trigger is used in runtime config. * beefy: tests adjusted test-substrate-runtime is now using frame::executive to finalize the block. during finalization the digests stored during block execution are checked against header digests: https://github.com/paritytech/substrate/blob/91bb2d29/frame/executive/src/lib.rs#L585-L591 It makes impossible to directly manipulate header's digets, w/o depositing logs into system pallet storage `Digest<T: Config>`. Instead of this dedicated extrinsic allowing to store logs items (MmrRoot / AuthoritiesChange) is used. * grandpa: tests adjusted test-substrate-runtime is now using frame::executive to finalize the block. during finalization the digest logs stored during block execution are checked against header digest logs: https://github.com/paritytech/substrate/blob/91bb2d29 /frame/executive/src/lib.rs#L585-L591 It makes impossible to directly manipulate header's digets, w/o depositing logs into system pallet storage `Digest<T: Config>`. Instead of this dedicated extrinsic allowing to store logs items (ScheduledChange / ForcedChange and DigestItem::Other) is used. * network:bitswap: test adjusted The size of unchecked extrinsic was increased. The pattern used in test will be placed at the end of scale-encoded buffer. * runtime apis versions adjusted * storage keys used in runtime adjusted * wasm vs native tests removed * rpc tests: adjusted Transfer transaction processing was slightly improved, test was adjusted. * tests: sizes adjusted Runtime extrinsic size was increased. Size of data read during block execution was also increased due to usage of new pallets in runtime. Sizes were adjusted in tests. * cargo.lock update cargo update -p substrate-test-runtime -p substrate-test-runtime-client * warnings fixed * builders cleanup: includes / std * extrinsic validation cleanup * txpool: benches performance fixed * fmt * spelling * Apply suggestions from code review Co-authored-by:Davide Galassi <davxy@datawok.net> * Apply code review suggestions * Apply code review suggestions * get rid of 1063 const * renaming: UncheckedExtrinsic -> Extrinsic * test-utils-runtime: further step to pure-frame * basic-authorship: tests OK * CheckSubstrateCall added + tests fixes * test::Transfer call removed * priority / propagate / no sudo+root-testing * fixing warnings + format * cleanup: build2/nonce + format * final tests fixes all tests are passing * logs/comments removal * should_not_accept_old_signatures test removed * make txpool benches work again * Cargo.lock reset * format * sudo hack removed * txpool benches fix+cleanup * .gitignore reverted * rebase fixing + unsigned cleanup * Cargo.toml/Cargo.lock cleanup * force-debug feature removed * mmr tests fixed * make cargo-clippy happy * network sync test uses unsigned extrinsic * cleanup * ".git/.scripts/commands/fmt/fmt.sh" * push_storage_change signed call remove * GenesisConfig cleanup * fix * fix * GenesisConfig simplified * storage_keys_works: reworked * storage_keys_works: expected keys in vec * storage keys list moved to substrate-test-runtime * substrate-test: some sanity tests + GenesisConfigBuilder rework * Apply suggestions from code review Co-authored-by:
Bastian Köcher <git@kchr.de> * Apply suggestions from code review * Review suggestions * fix * fix * beefy: generate_blocks_and_sync block_num sync with actaul value * Apply suggestions from code review Co-authored-by:
Davide Galassi <davxy@datawok.net> * Update test-utils/runtime/src/genesismap.rs Co-authored-by:
Davide Galassi <davxy@datawok.net> * cargo update -p sc-rpc -p sc-transaction-pool * Review suggestions * fix * doc added * slot_duration adjusted for Babe::slot_duration * small doc fixes * array_bytes::hex used instead of hex * tiny -> medium name fix * Apply suggestions from code review Co-authored-by:
Sebastian Kunert <skunert49@gmail.com> * TransferData::try_from_unchecked_extrinsic -> try_from * Update Cargo.lock --------- Co-authored-by: parity-processbot <> Co-authored-by:
Davide Galassi <davxy@datawok.net> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by:
Sebastian Kunert <skunert49@gmail.com>
Showing
- substrate/Cargo.lock 46 additions, 34 deletionssubstrate/Cargo.lock
- substrate/client/basic-authorship/src/basic_authorship.rs 111 additions, 69 deletionssubstrate/client/basic-authorship/src/basic_authorship.rs
- substrate/client/basic-authorship/src/lib.rs 1 addition, 1 deletionsubstrate/client/basic-authorship/src/lib.rs
- substrate/client/block-builder/src/lib.rs 10 additions, 9 deletionssubstrate/client/block-builder/src/lib.rs
- substrate/client/consensus/babe/src/tests.rs 5 additions, 56 deletionssubstrate/client/consensus/babe/src/tests.rs
- substrate/client/consensus/beefy/src/tests.rs 24 additions, 18 deletionssubstrate/client/consensus/beefy/src/tests.rs
- substrate/client/consensus/grandpa/src/tests.rs 56 additions, 61 deletionssubstrate/client/consensus/grandpa/src/tests.rs
- substrate/client/consensus/grandpa/src/warp_proof.rs 6 additions, 6 deletionssubstrate/client/consensus/grandpa/src/warp_proof.rs
- substrate/client/network/bitswap/src/lib.rs 5 additions, 3 deletionssubstrate/client/network/bitswap/src/lib.rs
- substrate/client/network/test/src/lib.rs 2 additions, 14 deletionssubstrate/client/network/test/src/lib.rs
- substrate/client/network/test/src/sync.rs 5 additions, 3 deletionssubstrate/client/network/test/src/sync.rs
- substrate/client/offchain/src/lib.rs 12 additions, 14 deletionssubstrate/client/offchain/src/lib.rs
- substrate/client/rpc-spec-v2/src/chain_head/tests.rs 4 additions, 3 deletionssubstrate/client/rpc-spec-v2/src/chain_head/tests.rs
- substrate/client/rpc/src/author/tests.rs 17 additions, 14 deletionssubstrate/client/rpc/src/author/tests.rs
- substrate/client/rpc/src/dev/tests.rs 19 additions, 3 deletionssubstrate/client/rpc/src/dev/tests.rs
- substrate/client/rpc/src/state/tests.rs 47 additions, 16 deletionssubstrate/client/rpc/src/state/tests.rs
- substrate/client/service/src/lib.rs 4 additions, 7 deletionssubstrate/client/service/src/lib.rs
- substrate/client/service/test/src/client/mod.rs 83 additions, 142 deletionssubstrate/client/service/test/src/client/mod.rs
- substrate/client/transaction-pool/benches/basics.rs 9 additions, 12 deletionssubstrate/client/transaction-pool/benches/basics.rs
- substrate/client/transaction-pool/src/graph/pool.rs 53 additions, 42 deletionssubstrate/client/transaction-pool/src/graph/pool.rs
Please register or sign in to comment