mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 21:11:07 +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:
@@ -34,8 +34,18 @@ pub enum Error {
|
||||
Signature(String),
|
||||
#[error("Session uninitialized")]
|
||||
UninitSession,
|
||||
#[error("pallet-beefy was reset, please restart voter")]
|
||||
#[error("pallet-beefy was reset")]
|
||||
ConsensusReset,
|
||||
#[error("Block import stream terminated")]
|
||||
BlockImportStreamTerminated,
|
||||
#[error("Gossip Engine terminated")]
|
||||
GossipEngineTerminated,
|
||||
#[error("Finality proofs gossiping stream terminated")]
|
||||
FinalityProofGossipStreamTerminated,
|
||||
#[error("Finality stream terminated")]
|
||||
FinalityStreamTerminated,
|
||||
#[error("Votes gossiping stream terminated")]
|
||||
VotesGossipStreamTerminated,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user