`BlockId` removal: refactor: `HeaderBackend::header` (#12874)
* BlockId removal: refactor: HeaderBackend::header It changes the arguments of: - `HeaderBackend::header`, - `Client::header`, - `PeersClient::header` - `ChainApi::block_header` methods from: `BlockId<Block>` to: `Block::Hash` This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) * non-trivial usages of haeder(block_id) refactored This may required introduction of dedicated function: header_for_block_num * fmt * fix * doc fixed * ".git/.scripts/fmt.sh" * BlockId removal: refactor: HeaderBackend::expect_header It changes the arguments of `HeaderBackend::expect_header` method from: `BlockId<Block>` to: `Block::Hash` * ".git/.scripts/fmt.sh" * readme updated * ".git/.scripts/fmt.sh" * fix Co-authored-by: parity-processbot <>
Showing
- substrate/bin/node/bench/src/construct.rs 1 addition, 1 deletionsubstrate/bin/node/bench/src/construct.rs
- substrate/bin/node/cli/src/service.rs 2 additions, 3 deletionssubstrate/bin/node/cli/src/service.rs
- substrate/bin/node/inspect/src/lib.rs 3 additions, 4 deletionssubstrate/bin/node/inspect/src/lib.rs
- substrate/client/api/src/in_mem.rs 4 additions, 6 deletionssubstrate/client/api/src/in_mem.rs
- substrate/client/authority-discovery/src/worker/tests.rs 1 addition, 1 deletionsubstrate/client/authority-discovery/src/worker/tests.rs
- substrate/client/basic-authorship/README.md 1 addition, 1 deletionsubstrate/client/basic-authorship/README.md
- substrate/client/basic-authorship/src/basic_authorship.rs 16 additions, 24 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/beefy/src/lib.rs 1 addition, 1 deletionsubstrate/client/beefy/src/lib.rs
- substrate/client/beefy/src/tests.rs 1 addition, 2 deletionssubstrate/client/beefy/src/tests.rs
- substrate/client/beefy/src/worker.rs 18 additions, 7 deletionssubstrate/client/beefy/src/worker.rs
- substrate/client/consensus/aura/src/lib.rs 2 additions, 2 deletionssubstrate/client/consensus/aura/src/lib.rs
- substrate/client/consensus/babe/src/lib.rs 2 additions, 2 deletionssubstrate/client/consensus/babe/src/lib.rs
- substrate/client/consensus/babe/src/tests.rs 32 additions, 62 deletionssubstrate/client/consensus/babe/src/tests.rs
- substrate/client/consensus/common/src/longest_chain.rs 2 additions, 5 deletionssubstrate/client/consensus/common/src/longest_chain.rs
- substrate/client/consensus/manual-seal/src/consensus/babe.rs 2 additions, 2 deletionssubstrate/client/consensus/manual-seal/src/consensus/babe.rs
- substrate/client/consensus/manual-seal/src/consensus/timestamp.rs 2 additions, 5 deletions...e/client/consensus/manual-seal/src/consensus/timestamp.rs
- substrate/client/consensus/manual-seal/src/lib.rs 12 additions, 10 deletionssubstrate/client/consensus/manual-seal/src/lib.rs
- substrate/client/consensus/manual-seal/src/seal_block.rs 3 additions, 7 deletionssubstrate/client/consensus/manual-seal/src/seal_block.rs
- substrate/client/db/src/lib.rs 44 additions, 48 deletionssubstrate/client/db/src/lib.rs
Please register or sign in to comment