Skip to content

network-service: remove peer_id from advertised address#3245

Merged
michalkucharczyk merged 4 commits intomainfrom
mku-pop-p2p
May 7, 2026
Merged

network-service: remove peer_id from advertised address#3245
michalkucharczyk merged 4 commits intomainfrom
mku-pop-p2p

Conversation

@michalkucharczyk
Copy link
Copy Markdown
Contributor

@michalkucharczyk michalkucharczyk commented May 6, 2026

During tests I noticed that smoldot only connects to bootnodes in local zombie network. No other peers were discovered.

The error was:

2026-05-06T14:12:50.033383Z DEBUG network: discovered-address-not-supported; chain=bulletin-westend, peer_id=12D3KooWM1CSadQcG99eP1UGfg69qnKxTacfhDu45jyohtuNJB6Z, addr=/ip4/192.168.1.200/tcp/45593/ws/p2p/12D3KooWM1CSadQcG99eP1UGfg69qnKxTacfhDu45jyohtuNJB6Z, obtained_from=12D3KooWQk1yQtG1YugyKjiQf6KNk8VjGGAT5xy1FWcnRKN4yXYJ

This PR is fixing this, by poping p2p/{peer_id} from advertised addresses.

It follows the same policy as for bootnodes addresses (and also what is done in polkadot-sdk).

Copy link
Copy Markdown
Contributor

@lrubasze lrubasze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michalkucharczyk michalkucharczyk enabled auto-merge (squash) May 7, 2026 08:20
@michalkucharczyk
Copy link
Copy Markdown
Contributor Author

cc: @dmitry-markin @lexnv

@michalkucharczyk michalkucharczyk merged commit 4a6dbcd into main May 7, 2026
31 checks passed
@michalkucharczyk michalkucharczyk deleted the mku-pop-p2p branch May 7, 2026 08:28
@lrubasze lrubasze mentioned this pull request May 7, 2026
lrubasze added a commit that referenced this pull request May 7, 2026
This is to:
- publish `smoldot-v3.1.2` npm.
- publish crates `smoldot-light v1.1.2`, `smoldot v1.1.1`

## Changes

### Added

- Log when the statement protocol substream opens, to make peer
connectivity easier to diagnose.
([#3154](#3154))

### Fixed

- Strip the trailing `/p2p/<peer_id>` from discovered addresses so peers
advertised in this form are no longer rejected as unsupported, restoring
peer discovery beyond the configured bootnodes.
([#3245](#3245))
- Stop continuously re-trying statement-store submissions after a peer
rejects them. ([#3230](#3230))
- Avoid panicking on shutdown when background tasks observe the client
being torn down.
([#3243](#3243))
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.

3 participants