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

feat(addrbook): skip peers with errors #2783

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Oct 30, 2023

@rootulp rootulp self-assigned this Oct 30, 2023
@rootulp rootulp changed the title feat: skip peers with errors feat(addrbook): skip peers with errors Oct 30, 2023
@rootulp rootulp marked this pull request as ready for review October 30, 2023 10:42
@rootulp rootulp merged commit c4c7e94 into celestiaorg:main Oct 30, 2023
33 checks passed
@rootulp rootulp deleted the rp/addrbook-skip branch October 30, 2023 10:54
rootulp added a commit to rootulp/celestia-app that referenced this pull request Oct 31, 2023
rootulp added a commit that referenced this pull request Nov 1, 2023
Backports #2623 and
#2783

## Testing

```
$ ./build/celestia-appd addrbook ~/git/rootulp/celestia/networks/celestia/peers.txt ~/Downloads/addrbook.json
Error adding b751ffe713e3e5d80e8f45c3bd5e640ee9a91cb9@10.129.127.95:26656: Cannot add non-routable address b751ffe713e3e5d80e8f45c3bd5e640ee9a91cb9@10.129.127.95:26656
Converted /Users/rootulp/git/rootulp/celestia/networks/celestia/peers.txt into /Users/rootulp/Downloads/addrbook.json

$ head -n 10  /Users/rootulp/Downloads/addrbook.json
{
	"key": "8957397890a66cd0f716cbc9",
	"addrs": [
		{
			"addr": {
				"id": "a41b4bc451b1b71d537aa1018226e08d7fa7e44e",
				"ip": "5.255.77.44",
				"port": 26656
			},
			"src": {
```
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.

Addrbook fails when encountering a peer with errors
3 participants