mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Check block CLI command (#4240)
* Check block operation * Update client/cli/src/lib.rs * Update client/cli/src/params.rs
This commit is contained in:
committed by
Gavin Wood
parent
f78b83e363
commit
504e2f8bd5
@@ -662,6 +662,7 @@ impl<B: BlockT> ChainSync<B> {
|
||||
justification: block_data.block.justification,
|
||||
origin: block_data.origin,
|
||||
allow_missing_state: false,
|
||||
import_existing: false,
|
||||
}
|
||||
}).collect()
|
||||
}
|
||||
@@ -675,6 +676,7 @@ impl<B: BlockT> ChainSync<B> {
|
||||
justification: b.justification,
|
||||
origin: Some(who.clone()),
|
||||
allow_missing_state: true,
|
||||
import_existing: false,
|
||||
}
|
||||
}).collect()
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ fn prepare_good_block() -> (TestClient, Hash, u64, PeerId, IncomingBlock<Block>)
|
||||
justification,
|
||||
origin: Some(peer_id.clone()),
|
||||
allow_missing_state: false,
|
||||
import_existing: false,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ impl<B: BlockT> Verifier<B> for PassThroughVerifier {
|
||||
auxiliary: Vec::new(),
|
||||
fork_choice: ForkChoiceStrategy::LongestChain,
|
||||
allow_missing_state: false,
|
||||
import_existing: false,
|
||||
}, maybe_keys))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user