mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 13:31:10 +00:00
Lower log level of grandpa until_imported message (#1691)
* core: gossip: add missing docs * core: grandpa: lower log level on until_imported
This commit is contained in:
committed by
Robert Habermeier
parent
1cb02c318b
commit
7c33728510
@@ -24,7 +24,6 @@ use rand::{self, seq::SliceRandom};
|
||||
use lru_cache::LruCache;
|
||||
use network_libp2p::NodeIndex;
|
||||
use runtime_primitives::traits::{Block as BlockT, Hash, HashFor};
|
||||
use runtime_primitives::generic::BlockId;
|
||||
pub use message::generic::{Message, ConsensusMessage};
|
||||
use protocol::Context;
|
||||
use config::Roles;
|
||||
@@ -173,6 +172,8 @@ impl<B: BlockT> ConsensusGossip<B> {
|
||||
self.peers.remove(&who);
|
||||
}
|
||||
|
||||
/// Prune all existing messages for the given topic and mark it as dead, all
|
||||
/// new messages for the given topic are ignored.
|
||||
pub fn collect_garbage_for_topic(&mut self, topic: B::Hash) {
|
||||
self.known_dead_topics.insert(topic, ());
|
||||
self.collect_garbage(|_| true);
|
||||
|
||||
Reference in New Issue
Block a user