mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
BlockId removal: refactor: BlockBackend::block|block_status (#2041)
* BlockId removal: refactor: BlockBackend::block|block_status It changes the arguments of: - `BlockBackend::block` - `BlockBackend::block_status` method from: `BlockId<Block>` to: `Block::Hash` This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) * update lockfile for {"polkadot", "substrate"} Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
847e1c00a2
commit
37aa2a8c5d
@@ -241,7 +241,7 @@ fn follow_new_best_with_dummy_recovery_works() {
|
||||
new_best_heads_sender.unbounded_send(block.header().clone()).unwrap();
|
||||
loop {
|
||||
Delay::new(Duration::from_millis(100)).await;
|
||||
match client.block_status(&BlockId::Hash(block.hash())).unwrap() {
|
||||
match client.block_status(block.hash()).unwrap() {
|
||||
BlockStatus::Unknown => {},
|
||||
status => {
|
||||
assert_eq!(block.hash(), client.usage_info().chain.best_hash);
|
||||
|
||||
Reference in New Issue
Block a user