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

Avoid panic when addr does not exist in book (Triage on ostracon#484) #8

Open
Tracked by #1
0Tech opened this issue Nov 1, 2023 · 3 comments
Open
Tracked by #1
Assignees
Labels
A: bug Something isn't working priority/minor

Comments

@0Tech
Copy link

0Tech commented Nov 1, 2023

The subject of the triage:

@0Tech 0Tech changed the title Triage on ostracon#484 Check the existence first in IsGood() Nov 2, 2023
@0Tech 0Tech self-assigned this Nov 2, 2023
@0Tech
Copy link
Author

0Tech commented Nov 2, 2023

In the current implementation of cometbft, the function is not in use.

@0Tech 0Tech removed their assignment Nov 2, 2023
@0Tech 0Tech changed the title Check the existence first in IsGood() Triage on ostracon#484 Nov 2, 2023
@Mdaiki0730
Copy link
Member

Mdaiki0730 commented Nov 2, 2023

It seems that it is not applied as of v0.38.0.
I think it's better to send a PR upstream because you can add proper error handling.
https://github.com/cometbft/cometbft/blob/v0.38.0/p2p/pex/addrbook.go#L237

@Mdaiki0730 Mdaiki0730 changed the title Triage on ostracon#484 Avoid panic when addr does not exist in book (Triage on ostracon#484) Nov 6, 2023
@Mdaiki0730
Copy link
Member

We plan to submit a PR to cometbft regarding this issue.

@0Tech 0Tech added A: bug Something isn't working priority/minor labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Something isn't working priority/minor
Projects
None yet
Development

No branches or pull requests

2 participants