mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 16:48:13 -05:00
chore(disc): add traces when node record added (#1303)
This commit is contained in:
@@ -765,6 +765,7 @@ impl Discv4Service {
|
||||
entry.value_mut().update_with_enr(last_enr_seq);
|
||||
if !old_status.is_connected() {
|
||||
let _ = entry.update(ConnectionState::Connected, Some(old_status.direction));
|
||||
trace!(target : "discv4", ?record, "added after successful endpoint proof");
|
||||
self.notify(DiscoveryUpdate::Added(record));
|
||||
|
||||
if has_enr_seq {
|
||||
@@ -778,6 +779,7 @@ impl Discv4Service {
|
||||
if !status.is_connected() {
|
||||
status.state = ConnectionState::Connected;
|
||||
let _ = entry.update(status);
|
||||
trace!(target : "discv4", ?record, "added after successful endpoint proof");
|
||||
self.notify(DiscoveryUpdate::Added(record));
|
||||
|
||||
if has_enr_seq {
|
||||
|
||||
Reference in New Issue
Block a user