Skip to content

Commit 3f06479

Browse files
committed
add disable_discovery
1 parent a636deb commit 3f06479

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

anchor/network/src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ pub struct Config {
5555
/// Disables peer scoring altogether.
5656
pub disable_peer_scoring: bool,
5757

58+
/// Disables the discovery protocol from starting.
59+
pub disable_discovery: bool,
60+
5861
/// Disables quic support.
5962
pub disable_quic_support: bool,
6063

@@ -94,6 +97,7 @@ impl Default for Config {
9497
boot_nodes_enr: vec![],
9598
boot_nodes_multiaddr: vec![],
9699
disable_peer_scoring: false,
100+
disable_discovery: false,
97101
disable_quic_support: false,
98102
topics: vec![],
99103
}

0 commit comments

Comments
 (0)