Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: waku_discv5, peer_manager - add more logs help debug discovery issues #2705

Merged
merged 2 commits into from
May 16, 2024

Conversation

Ivansete-status
Copy link
Collaborator

Description

Add more logs to help debugging discoveryv5 issues

Copy link

github-actions bot commented May 15, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2705-rln-v1

Built from 8af6b00

Copy link

github-actions bot commented May 15, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2705-rln-v2

Built from 8af6b00

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

return

if pm.peerStore[AddressBook][remotePeerInfo.peerId] == remotePeerInfo.addrs and
pm.peerStore[KeyBook][remotePeerInfo.peerId] == remotePeerInfo.publicKey and
pm.peerStore[ENRBook][remotePeerInfo.peerId].raw.len > 0:
# Peer already managed and ENR info is already saved
trace "peer already managed and ENR info is already saved",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR...but what if ENR has been updated, in that case do we update the ENR stored and peers capabilities locally?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR...but what if ENR has been updated, in that case do we update the ENR stored and peers capabilities locally?

The local peer store only gets new entries when a new connections is established

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, where is the ENR record stored for a peer? Is it part of peerStore or somewhere else?

waku/discovery/waku_discv5.nim Outdated Show resolved Hide resolved
Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Ivansete-status Ivansete-status force-pushed the add-some-more-trace-logs-discv5 branch from 8a23162 to ec6a75d Compare May 16, 2024 16:14
@Ivansete-status Ivansete-status merged commit 401630e into master May 16, 2024
14 of 15 checks passed
@Ivansete-status Ivansete-status deleted the add-some-more-trace-logs-discv5 branch May 16, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants