Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9511161
lnwallet: add new helper functions to scale confirmations based on amt
Roasbeef Sep 4, 2025
8b357cb
server: use new FundingConfsForAmounts helper func
Roasbeef Sep 4, 2025
88c681a
lnwallet: define helper func to coop close conf scaling
Roasbeef Sep 4, 2025
75e070d
lnwallet: add tests for new conf scaling helper funcs
Roasbeef Sep 4, 2025
d456c16
peer+rpcserver: use new conf scaling for notifications
Roasbeef Sep 4, 2025
d1d1f64
lncfg: add new dev config option for scaling channel close confs
Roasbeef Oct 1, 2025
41f05a0
multi: add new ChannelCloseConfs param, thread thru as needed
Roasbeef Oct 1, 2025
91fadb7
peer: send out a notification after the 1st conf, then wait for the rest
Roasbeef Oct 1, 2025
671e29f
contractcourt: update close logic to handle re-orgs of depth n-1, whe…
Roasbeef Oct 1, 2025
d80ca46
lntest: add new wait for conf helper method to ChainNotifier
Roasbeef Oct 1, 2025
63e544e
contractcourt: add new chainWatcherTestHarness
Roasbeef Oct 1, 2025
39c5490
contractcourt: update existing chain watcher tests due to new logic
Roasbeef Oct 1, 2025
8ded178
contractcourt: add unit tests for rbf re-org cases
Roasbeef Oct 1, 2025
29f17aa
contractcourt: add generic close re-org tests
Roasbeef Oct 1, 2025
c8de661
itest: add new coop close rbf itest
Roasbeef Oct 1, 2025
46a6149
contractcourt: add sync dispatch fast-path for single confirmation cl…
Roasbeef Oct 30, 2025
077c62c
contractcourt: unify+simplify new re-org aware logic
Roasbeef Dec 23, 2025
9be0987
lncfg: increase DefaultIncomingBroadcastDelta to 16
Roasbeef Jan 7, 2026
0f70e38
docs/release-notes: add release notes entry
Roasbeef Jan 9, 2026
868808f
routing: increase MinCLTVDelta from 18 to 24 blocks
Roasbeef Jan 14, 2026
49554db
multi: increase min cltv delta to 24
Roasbeef Jan 14, 2026
8c1f856
sweep: add log output when a input fails to sweep
ziggie1984 Jan 15, 2026
9a139b7
sweep: use minrelay fee instead of skipping the sweep
ziggie1984 Jan 15, 2026
416dc19
sweep: add test which highlights the problem
ziggie1984 Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions contractcourt/chain_arbitrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ type ChainArbitratorConfig struct {
// AuxCloser is an optional interface that can be used to finalize
// cooperative channel closes.
AuxCloser fn.Option[AuxChanCloser]

// ChannelCloseConfs is an optional override for the number of
// confirmations required for channel closes. When set, this overrides
// the normal capacity-based scaling. This is only available in
// dev/integration builds for testing purposes.
ChannelCloseConfs fn.Option[uint32]
}

// ChainArbitrator is a sub-system that oversees the on-chain resolution of all
Expand Down Expand Up @@ -1143,6 +1149,7 @@ func (c *ChainArbitrator) WatchNewChannel(newChan *channeldb.OpenChannel) error
auxLeafStore: c.cfg.AuxLeafStore,
auxResolver: c.cfg.AuxResolver,
auxCloser: c.cfg.AuxCloser,
chanCloseConfs: c.cfg.ChannelCloseConfs,
},
)
if err != nil {
Expand Down Expand Up @@ -1321,6 +1328,7 @@ func (c *ChainArbitrator) loadOpenChannels() error {
auxLeafStore: c.cfg.AuxLeafStore,
auxResolver: c.cfg.AuxResolver,
auxCloser: c.cfg.AuxCloser,
chanCloseConfs: c.cfg.ChannelCloseConfs,
},
)
if err != nil {
Expand Down
Loading
Loading