`addpeer` not working

Aperta
#11,435 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
networking

Direzione di ricerca

Start with the addpeer startup handling and the server log path that removes the connection request, then compare that flow with the successful lncli connect path. Check how the peer address is stored and surfaced by getnodeinfo; the issue gives no file or test names, so locate relevant tests before changing code. Done means peers behind NAT reconnect to the specified IPs after restart without adding private IPs to announcements.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm running v0.21.5-beta on mainnet.

I have several nodes running a private network with channels between them. The nodes have connection to the internet, but are behind NAT and have no ports forwarded.

I've recently changed some of their IP addresses as part of a network restructuring.

I try to use addpeer to specify the peer IP addresses on startup to the correct new IP addresses, but this does not work, the peers don't connect and I get inactive channels.

In the log I see

2026-10-28 15:28:49.628 [INF] SRVR: Removing conn req: [REDACTED]

for the peer that was added via addpeer.

Also, getnodeinfo just shows "addresses": [] for the peer.

If I use lncli connect after starting, I can connect to the peer and the channels become active, but I don't want to have to do that after each restart (see also https://github.com/lightningnetwork/lnd/issues/10870). I also done want to add my private network IP addresses to my node announcement messages.

Lingua principale
Go
Stelle
8.2k
Fork
2.3k
Merge medio
1g 11h
PR unite (30g)
103

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightningnetwork/lnd

Tutte le issue di lightningnetwork/lnd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.