mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 18:15:41 +00:00
BEEFY: client support for detecting equivocated votes (#13285)
* client/beefy: detect equivocated votes * client/beefy: make sure to persist state after voting * client/beefy: drop never-used aux-schema v2 migration * impl review suggestion --------- Signed-off-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
@@ -120,7 +120,7 @@ where
|
||||
|
||||
/// Note a voting round.
|
||||
///
|
||||
/// Noting round will start a live `round`.
|
||||
/// Noting round will track gossiped votes for `round`.
|
||||
pub(crate) fn note_round(&self, round: NumberFor<B>) {
|
||||
debug!(target: LOG_TARGET, "🥩 About to note gossip round #{}", round);
|
||||
self.known_votes.write().insert(round);
|
||||
@@ -242,9 +242,10 @@ mod tests {
|
||||
use sc_network_test::Block;
|
||||
use sp_keystore::{SyncCryptoStore, SyncCryptoStorePtr};
|
||||
|
||||
use crate::keystore::{tests::Keyring, BeefyKeystore};
|
||||
use crate::keystore::BeefyKeystore;
|
||||
use beefy_primitives::{
|
||||
crypto::Signature, known_payloads, Commitment, MmrRootHash, Payload, VoteMessage, KEY_TYPE,
|
||||
crypto::Signature, keyring::Keyring, known_payloads, Commitment, MmrRootHash, Payload,
|
||||
VoteMessage, KEY_TYPE,
|
||||
};
|
||||
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user