Skip to content
Snippets Groups Projects
Commit 6da156dc authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Re-export PeerId from the peerset API (#4985)

parent d8230ecf
No related merge requests found
......@@ -21,12 +21,13 @@ mod peersstate;
use std::{collections::{HashSet, HashMap}, collections::VecDeque};
use futures::{prelude::*, channel::mpsc};
use libp2p::PeerId;
use log::{debug, error, trace};
use serde_json::json;
use std::{pin::Pin, task::Context, task::Poll};
use wasm_timer::Instant;
pub use libp2p::PeerId;
/// We don't accept nodes whose reputation is under this value.
const BANNED_THRESHOLD: i32 = 82 * (i32::min_value() / 100);
/// Reputation change for a node when we get disconnected from it.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment