Commit graph

17379 commits

Author SHA1 Message Date
ziggie
bfea6e5907 walletrpc: add new deadline-delta param to bumpfee rpc
Add new parameter deadline-delta to the bumpfee request and only
allow it to be used when the budget value is used as well.
2025-02-07 14:59:14 -08:00
Oliver Gugger
8f5e3f08ca
Merge branch '0-18-5-branch-rc2-9383' into 0-18-5-branch-rc2 2025-02-04 09:49:50 +01:00
ziggie
a8500d3b1d
localchans: bugfix so that we always use the correct chanID 2025-02-04 09:49:49 +01:00
Oliver Gugger
61b88deba5
build: bump version to v0.18.5-beta.rc2 2025-01-31 21:23:14 +01:00
Oliver Gugger
184b63f755
Merge branch '0-18-5-branch-rc2-9459' into 0-18-5-branch-rc2 2025-01-31 21:22:39 +01:00
ziggie
923ca5f3f6
invoices+channeldb: Fix AMP invoices behaviour.
We now cancel all HTLCs of an AMP invoice as soon as it expires.
Otherwise because we mark the invoice as cancelled we would not
allow accepted HTLCs to be resolved via the invoiceEventLoop.
2025-01-31 21:18:58 +01:00
Olaoluwa Osuntokun
288f0e1b3d
Merge pull request #9460 from lightningnetwork/0-18-5-branch-rc1
release: create branch for v0.18.5-beta.rc1
2025-01-31 13:20:08 -06:00
Olaoluwa Osuntokun
871061e5a6 docs/release-notes: add entry for AMP HTLC bug fix 2025-01-31 13:19:10 -06:00
Oliver Gugger
8deab09cda
Merge branch '0-18-5-branch-rc1-9411' into 0-18-5-branch-rc1 2025-01-30 19:58:16 +01:00
Elle Mouton
2e16ede59a
.github: bump upload-artifact action to v4 2025-01-30 19:57:33 +01:00
Oliver Gugger
f78cafca7e
multi: fix CI for minor release branch
This commit fixes a couple of issues that only occur on the branch we
use for minor releases. The branch doesn't contain all refactors and
cleanups so a couple of very minor things need to be fixed.
Because we don't have all new features of the master branch we also
can't apply the fuzz corpora for the master branch as that can lead to
false positives.
2025-01-30 17:25:08 +01:00
Oliver Gugger
dd261b8aa3
Merge branch '0-18-5-branch-rc1-9462' into 0-18-5-branch-rc1 2025-01-30 17:24:48 +01:00
Oliver Gugger
ffd84be0fc
docs: add release notes 2025-01-30 17:23:11 +01:00
Oliver Gugger
bfcf76c3b4
multi: bump Go version to v1.22.11 2025-01-30 17:22:31 +01:00
Oliver Gugger
3909cd96e5
Merge branch '0-18-5-branch-rc1-9226' into 0-18-5-branch-rc1 2025-01-30 16:40:55 +01:00
sputn1ck
4836f7cd96
cmd/sendcoins: fix amt if select utxo
This commit fixes the display of the amount when
selecting utxos for the sendcoins command and
combining it with the `-sweepall` flag. Prior this
would show the full balance of the wallet. Now it
shows the total amount of the selected utxos.
2025-01-30 16:40:17 +01:00
Oliver Gugger
e25f8fcc81
build: bump version to v0.18.5-beta.rc1 2025-01-30 08:49:10 +01:00
Oliver Gugger
063a90364c
Merge branch '0-18-5-branch-rc1-9454' into 0-18-5-branch-rc1 2025-01-30 08:39:16 +01:00
ziggie
77982319b1
docs: add release-notes. 2025-01-30 08:36:56 +01:00
ziggie
bfbb73ffce
invoices: fix log entries and add a TODO.
We need to make sure if we cancel an AMP invoice we also cancel
all remaining HTLCs back.
2025-01-30 08:36:56 +01:00
ziggie
4b2793a815
invoices: make sure the db uses the same testTime. 2025-01-30 08:36:56 +01:00
ziggie
3c354cc350
invoicerpc: add clarifying comment. 2025-01-30 08:36:56 +01:00
ziggie
8ce00a8e79
invoices: remove obsolete code for AMP invoices.
We always fetch the HTLCs for the specific setID, so there is no
need to keep this code. In earlier versions we would call the
UpdateInvoice method with `nil` for the setID therefore we had
to lookup the AMPState. However this was error prune because in
case one partial payment times-out the AMPState would change to
cancelled and that could lead to not resolve HTLCs.
2025-01-30 08:36:56 +01:00
ziggie
728f8fc482
invoices: enhance the unit test suite.
The invoiceregistry test suite also includes unit tests for
multi part payment especially also including payments to AMP
invoices.
2025-01-30 08:36:56 +01:00
ziggie
a863534f41
multi: introduce new traffic shaper method.
We introduce a new specific fail resolution error when the
external HTLC interceptor denies the incoming HTLC. Moreover
we introduce a new traffic shaper method which moves the
implementation of asset HTLC to the external layers.
Moreover itests are adopted to reflect this new change.
2025-01-30 08:36:56 +01:00
ziggie
768882dc9a
invoices: treat replayed HTLCs beforehand.
We make sure that HTLCs which have already been decided upon
are resolved before before allowing the external interceptor to
potentially cancel them back. This makes the implementation for
the external HTLC interceptor more streamlined.
2025-01-30 08:36:55 +01:00
Oliver Gugger
be5238ed21
Merge branch '0-18-5-branch-rc1-9242' into 0-18-5-branch-rc1 2025-01-28 18:27:29 +01:00
Alex Akselrod
8b9885cfc9
docs: update release-notes for 0.18.5 2025-01-28 18:22:12 +01:00
Alex Akselrod
29b683d256
github workflow: save postgres log to zip file 2025-01-28 18:22:12 +01:00
Alex Akselrod
150672d518
Makefile: log to file instead of console 2025-01-28 18:22:12 +01:00
Alex Akselrod
de283a6392
Makefile: tune params for db-instance for postgres itests 2025-01-28 18:22:11 +01:00
Alex Akselrod
2c034699b1
sqldb: improve serialization error handling 2025-01-28 18:22:11 +01:00
Alex Akselrod
008dc65a6b
graph/db: handle previously-unhandled errors 2025-01-28 18:22:11 +01:00
Alex Akselrod
e0cff36ccf
batch: handle serialization errors correctly 2025-01-28 18:22:11 +01:00
Alex Akselrod
05de72c669
itest: fix flake in multi-hop payments
To make this itest work reliably with multiple parallel SQL
transactions, we need to count both the settle and final HTLC
events. Otherwise, sometimes the final events from earlier
forwards are counted before the forward events from later
forwards, causing a miscount of the settle events. If we
expect both the settle and final event for each forward,
we don't miscount.
2025-01-28 18:22:11 +01:00
Alex Akselrod
93c792ce05
log: add sub-logger for kvdb/sqlbase 2025-01-28 18:22:10 +01:00
Alex Akselrod
52bfb14975
Reapply "kvdb/postgres: remove global application level lock"
This reverts commit 67419a7c0c.
2025-01-28 18:22:10 +01:00
Alex Akselrod
db71709a07
go.mod: use local kvdb to reapply removal of global postgres lock 2025-01-28 18:22:10 +01:00
Alex Akselrod
3489a3bf8a
go.mod: update btcwallet to latest to eliminate waddrmgr deadlock 2025-01-28 18:22:06 +01:00
Oliver Gugger
4ee2c20ddb
Merge branch '0-18-5-branch-rc1-8805' into 0-18-5-branch-rc1 2025-01-28 18:21:05 +01:00
Jesse de Wit
f49021240f
localchans: do error if an edge policy is missing 2025-01-28 18:18:17 +01:00
Jesse de Wit
ebd570bddd
docs: update release notes 2025-01-28 18:18:16 +01:00
Jesse de Wit
ac0d29580e
channeldb: skip nil scheduler options
This is a robustness option to ensure LND doesn't crash when this
function is accidentally called with `AddChannelEdge(edge, nil)`.
2025-01-28 18:18:16 +01:00
Jesse de Wit
b45deab379
localchans: add policy when missing 2025-01-28 18:18:16 +01:00
Jesse de Wit
454e94f556
localchans: add test for createEdge and manager 2025-01-28 18:18:16 +01:00
Jesse de Wit
8cc78b371d
localchans: recreate missing edge if not found
If a node contains a channel, but doesn't have a corresponding edge in
the graph database, updating the channel policy would fail. In this
commit the edge is recreated if the channel exists. This ensures a node
can recover from a missing edge in the graph database by calling
updatechanpolicy.
2025-01-28 18:18:11 +01:00
Jesse de Wit
9609aa332e
lncli: add create_missing_edge 2025-01-28 17:56:03 +01:00
Jesse de Wit
61a5bbb5eb
lnrpc: add create_missing_edge flag 2025-01-28 17:56:00 +01:00
Oliver Gugger
ddeb835168
Merge pull request #9367 from lightningnetwork/0-18-4-branch-rc3
release: create branch for v0.18.4-beta
2024-12-17 21:17:09 +01:00
Oliver Gugger
74d15d1fbc
build: bump version to v0.18.4-beta 2024-12-17 21:15:07 +01:00