Commit graph

1640 commits

Author SHA1 Message Date
Erick Cestari
89d9d2633e docs: document tor v2 onion handling in 0.21 release notes
Add a 0.21 release-notes entry covering the `--tor.v2` removal, the
boundary rejection of v2 input on operator entry points, the
persisted-state filtering (self-node announcement, watchtower client,
autopilot, graph bootstrapper, SCB restore), the Tor controller's
v3-only ADD_ONION restriction, and the wire-faithful behavior that
preserves peer-signed v2 entries through `lnwire`, `graph/db`, and
the graph RPCs.

(cherry picked from commit fad749d02c)
2026-05-26 10:25:30 +00:00
Olaoluwa Osuntokun
0b41a1f2f6
docs: add neutrino headers import documentation
Document the neutrino fast sync feature that allows importing block and
filter headers from local files or HTTP URLs on startup. Cover
configuration for mainnet (block-dn.org), testnet3, testnet4, signet,
file format details, security considerations, and troubleshooting.

(cherry picked from commit 594024a312)
2026-05-22 09:37:13 -03:00
Olaoluwa Osuntokun
df04aafc2a
contractcourt+itest: tests for coop close insta-dispatch
In this commit, we add three focused unit tests in contractcourt
plus an itest that exercises the regression end-to-end.

The chain watcher harness gains an opt-in early-dispatch capture that
records every notifyEarlyCoopClose invocation so tests can assert how
many fired and what summaries they carried. On top of that:

TestEarlyDispatchCoopClose verifies the headline behavior. An
async-path coop close fires exactly one early dispatch with
IsPending=true and the post-N-conf flow still produces the regular
CooperativeCloseInfo downstream.

TestEarlyDispatchForceCloseNotInvoked guards the carve-out: force
closes never fire the early dispatch since their CLOSED_CHANNEL
event timing is intentionally unchanged.

TestEarlyDispatchReorgRefiresOnReReplacement nails down the reorg
path. Once a deep reorg removes the close, the early-dispatch flag
is cleared and the next coop close re-fires the early event with its
own summary, so a subscriber observes each distinct close attempt.

testZeroConfCoopCloseSubscribeEvents brings up a zero-conf channel
between Alice and Bob with --dev.force-channel-close-confs=3 so the
chain watcher takes the async multi-confirmation path. Alice
subscribes to channel events, initiates a cooperative close, and the
test asserts that CLOSED_CHANNEL fires after only one confirmation
of the close tx (not after the full three) and that
FULLY_RESOLVED_CHANNEL arrives once the close has reached three
confirmations. A quiet-window assertion at the end verifies that
exactly one CLOSED_CHANNEL event is delivered. If the suppression in
MarkChannelClosed broke and let it re-fire NotifyClosedChannel at N
confs, this assertion would catch the duplicate.

(cherry picked from commit eaa2d6824e)
2026-05-21 22:43:40 -03:00
Olaoluwa Osuntokun
ebfe7feae8
multi: rename "taproot" channel type to mean production variant
In this commit, we shuffle the CLI and RPC names so the bare "taproot"
identifier refers to the production taproot channel type (final
scripts, feature bits 80/81), i.e. the variant new integrations should
actually be using. Before this commit, "taproot" on the CLI mapped to
the staging bits, and anyone who wanted a real production taproot
channel had to spell out "taproot-final" on `lncli openchannel` or
`SIMPLE_TAPROOT_FINAL` over RPC. The recommended choice was hidden
behind the longer name.

On the CLI (`lncli openchannel --channel_type=...`):

  - "taproot" now selects the production variant (it used to mean
    staging).
  - "taproot-staging" is added for the legacy development bits, for
    peers that haven't moved over yet.
  - "taproot-final" stays as a deprecated alias for "taproot" so
    existing scripts don't break.

On the RPC (`CommitmentType`):

  - `TAPROOT = 7` is added as the canonical name for the production
    type. `SIMPLE_TAPROOT_FINAL = 7` is kept as a deprecated alias via
    `option allow_alias = true`, so existing clients keep compiling
    against the same Go constant and the wire value doesn't change.
  - `SIMPLE_TAPROOT = 5` (staging) is unchanged.
  - `SIMPLE_TAPROOT_OVERLAY = 6` is unchanged. The taproot-assets
    daemon hard-codes this distinct enum value, so it's unaffected.

Wire compat is preserved end-to-end: only the comments, enum entry
order, and the CLI string-to-enum mapping change. The numeric values
and the existing generated Go identifiers stay stable.

(cherry picked from commit 0aa1d8bdd6)
2026-05-21 19:12:35 +08:00
yyforyongyu
82d36222c1
docs: clarify taproot channel open defaults
(cherry picked from commit 654b680a2c)
2026-05-21 19:12:30 +08:00
Olaoluwa Osuntokun
0113f6c9df docs: release-note zero-value WitnessUtxo remote-sign fix
Add the bug-fix entry under 0.21.0 with a link to the PR.

(cherry picked from commit 44f2ef7ef0)
2026-05-20 01:23:19 +00:00
Erick Cestari
c7a94f692c docs: document deprecated RPC and field removals in 0.21 release notes
Add entries to the Breaking Changes section covering the payment and
tracking RPCs and the `outgoing_chan_id` field removed in this branch,
all of which were announced for removal in 0.21 via the 0.20 release
notes.

(cherry picked from commit 05bdb6633c)
2026-05-19 16:01:20 +00:00
George Tsagkarelis
0e41fa7f4c docs: add release note for SIMPLE_TAPROOT_FINAL follow-ups
See https://github.com/lightningnetwork/lnd/pull/10763.

(cherry picked from commit 33f623c855)
2026-05-05 15:18:30 +00:00
ziggie
e631b63c08
docs: release note for closed-channel tombstones on KV-SQL backends
Document the tombstone close path that #10780 wires onto sqlite/postgres,
the operator-visible iteration-cost growth that comes from leaving closed
chanBuckets on disk, and the NumForwardingPackages divergence that the
preserved forwarding-package bucket produces in PendingChannels.

(cherry picked from commit 1a52e85b94)
2026-05-04 12:22:11 -03:00
ziggie
6e0c537b26 docs: fix Contributors TOC anchor in v0.21.0 release notes
The TOC link for the Contributors section pointed to `#contributors`,
but GitHub generates the anchor for `# Contributors (Alphabetical
Order)` as `#contributors-alphabetical-order`, leaving the link
broken when the rendered file is viewed on GitHub. Update the TOC
to use the working anchor (matching the form already used in
release-notes-0.18.0.md).

(cherry picked from commit c0b417c79c)
2026-04-28 22:23:10 +00:00
Gijs van Dam
323760fd7b docs: add release note for same-peer onion message cycle drop
Record the onion-message same-peer cycle drop from #10754 under a new
Robustness subsection in the 0.21.0 release notes.

(cherry picked from commit 84ec3cb233)
2026-04-17 17:10:22 +00:00
Olaoluwa Osuntokun
8e91bcc463 docs: add release note for onion message rate limiting (#10713)
Add a single consolidated release note describing the onion-message
rate-limiting feature introduced earlier in this branch: the per-peer
and global byte-denominated token-bucket limiters, their defaults and
the four tunable flags, the 0/0 disable rule and the startup-time
rejection of invalid combinations, the channel-presence gate that
drops ingress from peers with no fully open channel, and the
protocol.onion-msg-relay-all opt-out for operators who want to accept
traffic from channel-less peers. Trimmed to the operator-facing
essentials; longer-form prose about the adversary model, the layers,
default sizing, and operator recipes lives in
docs/onion_message_rate_limiting.md, which the note links to.
2026-04-15 13:23:50 -07:00
Olaoluwa Osuntokun
91e35c4d5a docs/release-notes: add release note for production taproot channels 2026-04-13 12:21:42 -07:00
Olaoluwa Osuntokun
ac71ea7559 discovery+funding+peer+server: migrate gossip result to actor.Future[error]
In this commit, we eliminate the three buffered chan error patterns in
the discovery package and replace them with actor.Promise[error]/
actor.Future[error]. The old pattern is error-prone: if a channel is
completed more than once (e.g. when a deferred message copy is
re-enqueued and processed again), the second write to a capacity-1
channel blocks forever. actor.Promise.Complete() is idempotent via
sync.Once, so the second call is always a safe no-op regardless of
whether anyone holds a reference to the Future.

Additionally, PropagateChanPolicyUpdate previously blocked on <-errChan
after enqueuing a policy update with no quit-channel check, creating a
latent deadlock if the gossiper shut down between enqueue and send. It
now uses AwaitGossipResult with a ContextFromQuit-derived context, so
shutdown is always respected.

This is an atomic migration that updates all callers in the same
commit so each commit builds standalone. The three main pieces are:

discovery

networkMsg.err chan error becomes errPromise actor.Promise[error].
chanPolicyUpdateRequest.errChan chan error becomes errPromise.
syncTransitionReq.errChan chan error becomes errPromise. All ~65 sites
that previously wrote to the error channel now call
completeGossipResult(nMsg.errPromise, err) instead.

ProcessRemoteAnnouncement and ProcessLocalAnnouncement now return
actor.Future[error] instead of chan error. The capacity-2 buffer
comment on ProcessRemoteAnnouncement, which was itself a workaround
for the old pattern, is removed along with the TODO referencing the
actor model redesign. ProcessSyncTransition in syncer.go follows the
same pattern: the errChan select is replaced with AwaitGossipResult
using a ContextFromQuit-derived context.

funding

The SendAnnouncement function type in funding.Config changes from
returning chan error to returning actor.Future[error]. The call sites
in addToGraph and announceChannel are updated to await the future with
AwaitGossipResult, passing a context derived from f.quit via
ContextFromQuit. Shutdown signals (context.Canceled and
discovery.ErrGossiperShuttingDown) are both mapped to
ErrFundingManagerShuttingDown via the new mapGossipError helper, which
also factors out the duplicated graph-rejected / unknown-error
handling. The three mock SendAnnouncement implementations in
manager_test.go are updated accordingly.

peer+server

In peer/brontide.go, the ProcessRemoteAnnouncement call in the gossip
stream handler intentionally discards the result since remote gossip
messages are fire-and-forget from the peer's perspective. The old
comment explaining why the chan error was unsafe to use is replaced
with a note that an unawaited Future[error] carries no overhead.

In server.go (applyChannelUpdate), the previous select on errChan and
the quit channel is replaced with ContextFromQuit + AwaitGossipResult.
2026-04-10 19:16:49 -07:00
ziggie
a10cd1699f
docs: add release note for network separation safeguard
This is in particular important when running with a postgres
backend.

This only works if you run LND with the native sql flag but
people should run it with this flag from 21 on anyways.
2026-04-10 12:04:04 +02:00
Elle
27e50765b6
Merge pull request #10717 from ellemouton/g175-filter-known-chan-ids-v2
graph/db: make FilterKnownChanIDs version-aware
2026-04-09 17:05:51 +05:45
ziggieXXX
6dd4094c24
Merge pull request #10719 from ziggie1984/hodlqueue-stop-order-fix
htlcswitch: fix hodlQueue deadlock by stopping htlcManager first
2026-04-09 12:23:24 +02:00
ajaysehwal
bb1b56f3fe docs: add release notes for Android 16KB page size 2026-04-09 14:09:51 +05:30
ziggie
15135222ea
docs: add release-notes for 21 2026-04-09 10:20:29 +02:00
Elle Mouton
4d85877a05
docs: add release note for FilterKnownChanIDs versioning 2026-04-09 10:45:49 +05:45
Matthew Zipkin
39639056ad
docs: update release notes 2026-04-08 10:41:58 -04:00
ziggie
85c8e95514
docs: add release note for cursor-based invoice pagination 2026-04-01 10:55:43 +02:00
Elle Mouton
f3d9b1f2a4
docs: add release note for v1 node horizon query optimization 2026-03-31 12:05:45 +02:00
Elle Mouton
f38daf81dd
docs: add release note for versioned graph horizon queries 2026-03-31 09:14:50 +02:00
ziggieXXX
137e5b1a16
Merge pull request #10666 from ziggie1984/fwd-history-purge
multi: add DeleteForwardingHistory to selectively purge old forwarding history
2026-03-30 18:45:03 +02:00
ziggie
a5fcc8191a
docs: add release-notes for LND 21 2026-03-30 17:39:46 +02:00
Olaoluwa Osuntokun
f297c4782e
Merge pull request #10063 from lightningnetwork/taproot-rbf
multi: add taproot support to the new RBF close flow
2026-03-27 16:17:44 -07:00
Olaoluwa Osuntokun
55854e1dcd docs: add taproot RBF coop close to 0.21.0 release notes 2026-03-27 14:04:25 -07:00
Elle Mouton
9eac07df31
docs: add release notes for v1 taproot funding script fix 2026-03-27 14:19:21 +02:00
yyforyongyu
59f50fbaad
docs: update release note 2026-03-26 18:55:13 +08:00
ziggieXXX
c14a054604
Merge pull request #10659 from guggero/lncli-wallet-psbt-sign
lncli: add missing `wallet psbt sign` sub command
2026-03-25 16:13:56 +01:00
ziggieXXX
3b598bef3e
Merge pull request #10658 from saubyk/fix_rpc_documentation
Fix rpc documentation for Router Service
2026-03-24 19:27:52 +01:00
ziggieXXX
e4133bcb50
Merge pull request #10065 from ellemouton/asyncGraphCacheLoad
graph/db: async graph cache population
2026-03-24 18:29:44 +01:00
saubyk
06c383f26a
docs: add release notes for missing lncli tags fix 2026-03-24 07:33:29 -07:00
Oli
1ed028fc6c
docs: add release notes 2026-03-24 13:13:43 +01:00
Elle Mouton
f733eed26e
docs: add release notes 2026-03-24 09:49:23 +02:00
ziggieXXX
db765a752b
Merge pull request #10481 from bhandras/lntest-bitcoind-miner
lntest: add bitcoind miner backend
2026-03-23 18:17:50 +01:00
Andras Banki-Horvath
ad62f5fa21
docs: add 0.21 release note for bitcoind miner tests 2026-03-23 15:46:38 +01:00
ziggie
c455975d23
docs: add release-notes to LND release 21 2026-03-19 19:30:13 +01:00
ziggie
7a2a4ef55c
docs: remove gossiper deadlock fix entry from 0.21.0 release notes
The gossiper deadlock fix (PR #10540) was already included in the
v0.20.1 release, so the entry should not appear again in the 0.21.0
release notes.
2026-03-18 15:07:56 +01:00
saubyk
1306376984
docs: release notes entries removed for prs merged with release v0.20.1 2026-03-17 15:29:08 -07:00
saubyk
84e82bfe98
docs: add missing v0.20.1 release notes from release branch 2026-03-17 15:16:47 -07:00
Elle Mouton
fd239c18f5
channeldb: add V2 (taproot) waiting proof codec support
Introduce the WaitingProofInner interface and two concrete
implementations — V1WaitingProof (AnnounceSignatures1) and
V2WaitingProof (AnnounceSignatures2 + optional aggregate MuSig2 nonce).

WaitingProof.Encode/Decode now dispatch on the type prefix byte added
in the previous commit, so the store can transparently persist either
proof variant.

The gossiper is updated with a V1 type assertion to maintain existing
behaviour; full V2 gossiper integration will follow when taproot channel
announcements are wired up.

No live code path creates V2 waiting proofs yet — this commit only
lands the codec and storage readiness so the schema is in place before
new writers are introduced.
2026-03-17 11:10:39 +02:00
Elle
62c931de31
Merge pull request #10582 from ellemouton/g175-db-8
[g175] graph/db: add versioned range queries and complete v2 graph query migration
2026-03-17 10:25:38 +02:00
ziggieXXX
8fb69b20c0
Merge pull request #10611 from calvinrzachman/multi-readonly-middleware
rpcperms: allow multiple read-only middleware
2026-03-17 00:26:02 +01:00
Calvin Zachman
58f5997ef7
docs: update v0.21 release notes 2026-03-16 17:01:01 -04:00
Elle Mouton
d47dd3ff6f
docs: update release notes 2026-03-16 11:29:41 +02:00
ziggie
17da81d678
docs: add release-notes for LND 21 2026-03-15 22:03:57 +01:00
ziggieXXX
11e249b134
Merge pull request #10535 from ziggie1984/kvdb-sql-payments-improvements
improve speed of retrieval of payments
2026-03-13 18:50:30 +01:00
ziggie
291e445676
docs: update release notes
The previous release-note entry was not super accurrate so we
update it to reflect the change in more detail.
2026-03-13 13:56:12 +01:00