mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-22 02:11:01 +00:00
BEEFY: Support compatibility with Warp Sync - Allow Warp Sync for Validators (#2689)
Resolves https://github.com/paritytech/polkadot-sdk/issues/2627 Initializes voter _after_ headers sync finishes in the background. This enables the BEEFY gadget to work with `--sync warp` (GRANDPA warp sync). Co-authored-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
use crate::LOG_TARGET;
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use log::debug;
|
||||
use log::{debug, info};
|
||||
use sp_consensus_beefy::{
|
||||
ecdsa_crypto::{AuthorityId, Signature},
|
||||
Commitment, EquivocationProof, SignedCommitment, ValidatorSet, ValidatorSetId, VoteMessage,
|
||||
@@ -194,7 +194,11 @@ where
|
||||
self.previous_votes.retain(|&(_, number), _| number > round_num);
|
||||
self.mandatory_done = self.mandatory_done || round_num == self.session_start;
|
||||
self.best_done = self.best_done.max(Some(round_num));
|
||||
debug!(target: LOG_TARGET, "🥩 Concluded round #{}", round_num);
|
||||
if round_num == self.session_start {
|
||||
info!(target: LOG_TARGET, "🥩 Concluded mandatory round #{}", round_num);
|
||||
} else {
|
||||
debug!(target: LOG_TARGET, "🥩 Concluded optional round #{}", round_num);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user