mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Make Verifier::verify mutable (#3165)
* Make Verifier::verify mutable * Fix GrandPa tests * Fix doctest * Fix more doctests
This commit is contained in:
committed by
Gavin Wood
parent
f11291cd9a
commit
97febf4c30
@@ -891,7 +891,7 @@ impl<C: Components> network::TransactionPool<ComponentExHash<C>, ComponentBlock<
|
||||
/// # struct MyVerifier;
|
||||
/// # impl<B: BlockT> Verifier<B> for MyVerifier {
|
||||
/// # fn verify(
|
||||
/// # &self,
|
||||
/// # &mut self,
|
||||
/// # origin: BlockOrigin,
|
||||
/// # header: B::Header,
|
||||
/// # justification: Option<Justification>,
|
||||
@@ -929,11 +929,11 @@ impl<C: Components> network::TransactionPool<ComponentExHash<C>, ComponentBlock<
|
||||
/// LightService = LightComponents<Self>
|
||||
/// { |config| <LightComponents<Factory>>::new(config) },
|
||||
/// FullImportQueue = BasicQueue<Block>
|
||||
/// { |_, client, _| Ok(BasicQueue::new(Arc::new(MyVerifier), Box::new(client), None, None)) },
|
||||
/// { |_, client, _| Ok(BasicQueue::new(MyVerifier, Box::new(client), None, None)) },
|
||||
/// LightImportQueue = BasicQueue<Block>
|
||||
/// { |_, client| {
|
||||
/// let fprb = Box::new(DummyFinalityProofRequestBuilder::default()) as Box<_>;
|
||||
/// Ok((BasicQueue::new(Arc::new(MyVerifier), Box::new(client), None, None), fprb))
|
||||
/// Ok((BasicQueue::new(MyVerifier, Box::new(client), None, None), fprb))
|
||||
/// }},
|
||||
/// SelectChain = LongestChain<FullBackend<Self>, Self::Block>
|
||||
/// { |config: &FactoryFullConfiguration<Self>, client: Arc<FullClient<Self>>| {
|
||||
|
||||
Reference in New Issue
Block a user