Skip to content

net: keep unreachable I2P out of addrman - #680

Merged
reardencode merged 1 commit into
masterfrom
net/i2p-addrman-reachable
Sep 22, 2026
Merged

reardencode merged 1 commit into
masterfrom
net/i2p-addrman-reachable

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Nightly core-functional failed in p2p_addrv2_relay.py: after an addrv2 message that includes one I2P address, getnodeaddresses(count=0, network="i2p") was 1. Core keeps that count at 0 unless -i2psam made I2P reachable. The row is still relayed; it is just not stored.

--i2p-sam now sets that reachability before the SAM session comes up, so a configured router still learns port-0 I2P destinations.

Test plan

  • cargo test -p rbitcoin-net --lib learn_addrv2 (drops until reachable; keeps port 0 once reachable)
  • Required CI

Core stores an I2P addrv2 row only when -i2psam made the network
reachable. Without that, p2p_addrv2_relay expects getnodeaddresses
network=i2p to be empty even though the row is still relayed.
@reardencode reardencode added overlay-functional Run private Tor/i2pd/cjdns overlay functional harness core-functional Run Core functional nightly.sh on this PR (inventory + release-pin warn) labels Sep 22, 2026
@reardencode
reardencode merged commit c11398c into master Sep 22, 2026
36 checks passed
@rearden-grok
rearden-grok Bot deleted the net/i2p-addrman-reachable branch September 22, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-functional Run Core functional nightly.sh on this PR (inventory + release-pin warn) overlay-functional Run private Tor/i2pd/cjdns overlay functional harness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant