Add ability to connect to raw libp2p nodes

This commit is contained in:
Age Manning
2019-07-24 22:25:37 +10:00
parent 40c0b70b22
commit 15c4062761
4 changed files with 44 additions and 10 deletions

View File

@@ -37,6 +37,9 @@ pub struct Discovery<TSubstream> {
/// The target number of connected peers on the libp2p interface.
max_peers: usize,
/// directory to save ENR to
enr_dir: String,
/// The delay between peer discovery searches.
peer_discovery_delay: Delay,
@@ -54,9 +57,6 @@ pub struct Discovery<TSubstream> {
/// Logger for the discovery behaviour.
log: slog::Logger,
/// directory to save ENR to
enr_dir: String,
}
impl<TSubstream> Discovery<TSubstream> {