Skip to content
  1. Dec 19, 2022
    • Liu-Cheng Xu's avatar
      Support custom genesis block (#12291) · b92aa3db
      Liu-Cheng Xu authored
      * 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`
      b92aa3db
    • Michal Kucharczyk's avatar
      sc-network-test::Peer: block push methods return hashes vec (#12944) · 1be51ccb
      Michal Kucharczyk authored
      
      
      * sc-network-test::Peer: block push methods return hashes vec
      
      This commit reworks the block generation/push methods in
      sc-network-test::Peer.
      
      Now methods are providing the vector of hashes that were built.
      
      This allows to get rid of redundant `block_hash_from_id` call, as all
      hashes are known just after being built.
      
      Similar approach was taken in BeefyTestNet::generate_blocks_and_sync
      method.
      
      This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292)
      
      * fix
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      1be51ccb
    • Qinxuan Chen's avatar
      *: update `rand` to v0.8.5 (#12962) · 40c04cf1
      Qinxuan Chen authored
      * *: update rand to v0.8.5
      
      * *: remove useless deps from Cargo.toml
      
      * fix pallet-session-benchmarking
      
      * fix pallet-election-provider-support test
      
      * remove useless rand from dev-dependencies
      40c04cf1
  2. Dec 17, 2022
  3. Dec 16, 2022
  4. Dec 15, 2022
  5. Dec 14, 2022
  6. Dec 13, 2022
  7. Dec 12, 2022
  8. Dec 11, 2022
  9. Dec 10, 2022
    • Ankan's avatar
      Safe desired targets call (#12826) · 1320daa3
      Ankan authored
      * checked call for desired targets
      
      * fix compile
      
      * fmt
      
      * fix tests
      
      * cleaner with and_then
      1320daa3
    • Bastian Köcher's avatar
      Ensure that we inform all tasks to stop before starting the 60 seconds shutdown (#12897) · 2f2e481d
      Bastian Köcher authored
      * Ensure that we inform all tasks to stop before starting the 60 seconds shutdown
      
      The change of waiting in maximum 60 seconds for the node to shutdown actually introduced a bug. We
      were actually waiting always 60 seconds as we didn't informed our tasks to shutdown. The solution to
      this problem is to drop the task manager as this will then inform all tasks to end. It also adds
      tests to ensure that the behaviors work as expected. (This should already have been done in the
      first pr! :()
      
      * ".git/.scripts/fmt.sh" 1
      
      Co-authored-by: command-bot <>
      2f2e481d
  10. Dec 09, 2022