Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/validator_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ impl<E: EthSpec> ValidatorMonitor<E> {

info!(
self.log,
"Block from API";
"Block from monitored validator";
"root" => ?block_root,
"delay" => %delay.as_millis(),
"slot" => %block.slot(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ impl<E: EthSpec> PeerManager<E> {
"connection" => ?endpoint.to_endpoint()
);

if other_established == 0 {
self.events.push(PeerManagerEvent::MetaData(peer_id));
}

// Update the prometheus metrics
if self.metrics_enabled {
metrics::inc_counter(&metrics::PEER_CONNECT_EVENT_COUNT);
Expand All @@ -267,6 +263,10 @@ impl<E: EthSpec> PeerManager<E> {
return;
}

if other_established == 0 {
self.events.push(PeerManagerEvent::MetaData(peer_id));
}

// NOTE: We don't register peers that we are disconnecting immediately. The network service
// does not need to know about these peers.
match endpoint {
Expand Down