mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-16 23:57:06 +00:00
Incorporate sc-peerset into sc-network (#14236)
This commit is contained in:
1 parent
b8bca85e9d
commit
d4b2bf7394
40 files changed
+306
-337
No files matched your search
@@ -22,7 +22,7 @@ pub mod message;
|
||||
pub mod metrics;
|
||||
pub mod warp;
|
||||
|
||||
use crate::role::Roles;
|
||||
use crate::{role::Roles, types::ReputationChange};
|
||||
use futures::Stream;
|
||||
|
||||
use libp2p_identity::PeerId;
|
||||
@@ -106,7 +106,7 @@ pub struct SyncStatus<Block: BlockT> {
|
||||
|
||||
/// A peer did not behave as expected and should be reported.
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct BadPeer(pub PeerId, pub sc_peerset::ReputationChange);
|
||||
pub struct BadPeer(pub PeerId, pub ReputationChange);
|
||||
|
||||
impl fmt::Display for BadPeer {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
|
||||
Reference in new issue
Block a user