Skip to content

p2p: compare peers ports to allow running multiple nodes from single IP - #3864

Merged
wiesche89 merged 38 commits into
mimblewimble:stagingfrom
ardocrat:peers_compare_ports
Jul 5, 2026
Merged

p2p: compare peers ports to allow running multiple nodes from single IP#3864
wiesche89 merged 38 commits into
mimblewimble:stagingfrom
ardocrat:peers_compare_ports

Conversation

@ardocrat

@ardocrat ardocrat commented Jun 16, 2026

Copy link
Copy Markdown
Contributor
  • Allow to launch several nodes under single non-global IP.
  • Do not store private addresses at db
  • Set default chain port for peers on parsing error from config
  • Ignore port for deny/allow peers when :0 port specified

Open problem: if you run node behind a proxy, it will use local ip address for peers as native socket API is spreading first available address, we just use port from config at handshake.

@ardocrat
ardocrat requested a review from wiesche89 June 16, 2026 16:28
Comment thread p2p/src/types.rs Outdated
Comment thread config/src/config.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/peers.rs Outdated
Comment thread p2p/src/peers.rs Outdated
Comment thread p2p/src/peers.rs
Comment thread p2p/src/peers.rs
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/handshake.rs Outdated
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/types.rs
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/peers.rs
Comment thread config/src/comments.rs Outdated
Comment thread p2p/src/peer.rs Outdated
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/types.rs Outdated
Comment thread src/bin/grin.rs
Comment thread src/bin/grin.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/types.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs Outdated
Comment thread p2p/src/store.rs
Comment thread p2p/src/store.rs
Comment thread p2p/src/store.rs
Comment thread p2p/src/peers.rs
Comment thread p2p/src/msg.rs Outdated
Comment thread p2p/src/store.rs Outdated
@wiesche89
wiesche89 merged commit bd57a55 into mimblewimble:staging Jul 5, 2026
13 checks passed
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.

2 participants