Skip to content

feat: support all networks (addrv2 decoding message) - #2533

Open
rllola wants to merge 3 commits into
btcsuite:masterfrom
rllola:feat/support-all-networks
Open

feat: support all networks (addrv2 decoding message)#2533
rllola wants to merge 3 commits into
btcsuite:masterfrom
rllola:feat/support-all-networks

Conversation

@rllola

@rllola rllola commented May 20, 2026

Copy link
Copy Markdown

Change Description

In this PR, we allow returning the full range of supported network ID when parsing Arrdv2 message and we add utility functions to determine if the address is I2P, CJDNS or Yggdrasil.

They previously were parsed but then the result was ignored to return an error. However we don't allow connected to them using btcd to not change the current behavior of btcd.

Steps to Test

Run the node with support for Bip155. Request a list of peers to connect to. Notice the I2P peers (for now I haven't seen any CJDNS or YggDrasil peer info).

Pull Request Checklist

Testing

  • Your PR passes all CI checks.
  • Tests covering the positive and negative (error paths) are included.
  • Bug fixes contain tests triggering the bug to prevent regressions.

Code Style and Documentation

📝 Please see our Contribution Guidelines for further guidance.

@rllola
rllola marked this pull request as ready for review May 31, 2026 09:46
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.

1 participant