MCPcopy Create free account
hub / github.com/base/base / default

Method default

crates/consensus/cli/src/bootnode.rs:191–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190impl Default for BootnodeP2PArgs {
191 fn default() -> Self {
192 Self {
193 priv_path: None,
194 private_key: None,
195 advertise_ip: None,
196 advertise_tcp_port: None,
197 advertise_udp_port: None,
198 listen_ip: "0.0.0.0".parse().expect("valid default IP"),
199 listen_tcp_port: 9222,
200 listen_udp_port: 9223,
201 discovery_interval: 5,
202 bootstore: None,
203 disable_bootstore: false,
204 bootnodes: Vec::new(),
205 discovery_randomize: None,
206 enr_output: None,
207 }
208 }
209}
210
211impl BootnodeP2PArgs {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected