BlockId removal: BlockBuilderProvider::new_block_at (#6734)

* `BlockId` removal: `BlockBuilderProvider::new_block_at`

It changes the arguments of `BlockBuilderProvider::new_block_at` from:
`BlockId<Block>` to: `Block::Hash`

* useless import removed

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Michal Kucharczyk
2023-02-21 20:26:46 +01:00
committed by GitHub
parent 82b6db41e8
commit 0e59d866f3
2 changed files with 185 additions and 185 deletions
+183 -183
View File
File diff suppressed because it is too large Load Diff
@@ -24,7 +24,7 @@ use sp_consensus_babe::{
digests::{PreDigest, SecondaryPlainPreDigest}, digests::{PreDigest, SecondaryPlainPreDigest},
BABE_ENGINE_ID, BABE_ENGINE_ID,
}; };
use sp_runtime::{generic::BlockId, traits::Block as BlockT, Digest, DigestItem}; use sp_runtime::{traits::Block as BlockT, Digest, DigestItem};
use sp_state_machine::BasicExternalities; use sp_state_machine::BasicExternalities;
/// An extension for the test client to initialize a Polkadot specific block builder. /// An extension for the test client to initialize a Polkadot specific block builder.
@@ -87,7 +87,7 @@ impl InitPolkadotBlockBuilder for Client {
}; };
let mut block_builder = self let mut block_builder = self
.new_block_at(&BlockId::Hash(hash), digest, false) .new_block_at(hash, digest, false)
.expect("Creates new block builder for test runtime"); .expect("Creates new block builder for test runtime");
let mut inherent_data = sp_inherents::InherentData::new(); let mut inherent_data = sp_inherents::InherentData::new();