mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 19:11:04 +00:00
sc-consensus-beefy: restart voter on pallet reset (#14821)
When detecting pallet-beefy consensus reset, just reinitialize the worker and continue without bringing down the task (and possibly the node). Signed-off-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
@@ -162,6 +162,12 @@ mod mmr_root_provider {
|
||||
_phantom: PhantomData<B>,
|
||||
}
|
||||
|
||||
impl<B, R> Clone for MmrRootProvider<B, R> {
|
||||
fn clone(&self) -> Self {
|
||||
Self { runtime: self.runtime.clone(), _phantom: PhantomData }
|
||||
}
|
||||
}
|
||||
|
||||
impl<B, R> MmrRootProvider<B, R>
|
||||
where
|
||||
B: Block,
|
||||
|
||||
Reference in New Issue
Block a user