Skip to content

Commit 410457a

Browse files
committed
Fix some small annoyances
1 parent a2b0009 commit 410457a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

beacon_node/lighthouse_network/src/service/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ impl<E: EthSpec> Network<E> {
197197
&ctx.chain_spec,
198198
)?;
199199

200+
// Pre-initializes metrics
201+
// This is is an initial value to specify NAT ports start closed until proven otherwise.
202+
set_gauge_vec(&NAT_OPEN, &["libp2p_ipv4"], 0),
203+
set_gauge_vec(&NAT_OPEN, &["libp2p_ipv6"], 0),
204+
200205
// Construct the metadata
201206
let custody_subnet_count = ctx.chain_spec.is_peer_das_scheduled().then(|| {
202207
if config.subscribe_all_data_column_subnets {

beacon_node/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ pub fn cli_app() -> Command {
185185
.long("port6")
186186
.value_name("PORT")
187187
.help("The TCP/UDP ports to listen on over IPv6 when listening over both IPv4 and \
188-
IPv6. Defaults to 9090 when required. The Quic UDP port will be set to this value + 1.")
189-
.default_value("9090")
188+
IPv6. Defaults to 9000. The Quic UDP port will be set to this value + 1.")
189+
.default_value("9000")
190190
.action(ArgAction::Set)
191191
.display_order(0)
192192
)

0 commit comments

Comments
 (0)