Commit graph

18622 commits

Author SHA1 Message Date
Andras Banki-Horvath
7020edb60d
invoices: reduce log spam when migrating invoices to SQL 2025-04-14 16:57:30 +02:00
Oliver Gugger
6d648ad90a
Merge pull request #9684 from ziggie1984/master
multi: update new walletdb version in main go.mod and kvdb go.mod
2025-04-14 15:56:16 +02:00
Yong
4cf18ee45c
Merge pull request #9703 from yyforyongyu/fix-attempt-hash
Patch htlc attempt hash for legacy payments
2025-04-14 21:12:26 +08:00
Oliver Gugger
ff6f98a818
Merge pull request #9696 from yyforyongyu/add-aider
Add `development_guidelines.md` for both human and machine
2025-04-14 11:19:58 +02:00
yyforyongyu
45029d9b6c
docs: add development_guidelines.md
This file focuses on the requirements and steps needed to make an
acceptable PR.
2025-04-14 17:08:56 +08:00
Oliver Gugger
f7bd2a7228
Merge pull request #9705 from ffranr/assert-log-shutdown-only-with-handle
lntest: assert shutdown via logs only if log file handle is present
2025-04-11 17:48:19 +02:00
ffranr
24ba098798
lntest: assert shutdown via logs only if log handle is present
Ensure shutdown assertions through log inspection are only performed
when the harness node has an active log file handle. This avoids
errors during shutdown when log file output is disabled.
2025-04-11 15:30:13 +01:00
yyforyongyu
79ab2b2daf
docs: update release notes 2025-04-11 21:52:15 +08:00
yyforyongyu
106e1e91f0
routing: patch the hash field for legacy payments
For legacy payments, the hash field will be nil, and we need to use the
payment identifier instead. We have multiple ways to fix this:

A trivial solution is we can simply call `sharder.GetHash` in
`collectResult`, and pass this hash to `attempt.Circuit()`, which ends
up multiple methods taking the hash. This is bad as it's confusing why
the methods of `HTLCAttempt` need to take another hash value, while
itself already has the info via `HTLCAttempt.Hash`. We don't want an
exceptional case to influence our main flow.

We can then patch the field `HTLCAttempt.Hash`, and set it to the
payment hash if it's nil, which can be done in `collectResult`. This is
also less optimal as it means every htlc attempts, either legacy or not,
now need to bear this context.

The best way to do this is to patch the field in
`reloadInflightAttempts`. As we are sure any new payments made won't be
legacy, and the only source of legacy payments comes from reloading
existing payments.
2025-04-11 21:52:15 +08:00
yyforyongyu
8689eeede4
routing: add regression test to catch the panic 2025-04-11 21:52:14 +08:00
Oliver Gugger
b732525a98
Merge pull request #9603 from NishantBansal2003/validate-mpp
routerrpc: add validation to MPP params
2025-04-10 19:28:02 +02:00
Nishant Bansal
e747ead933
docs: add release notes
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-04-10 18:17:35 +02:00
Nishant Bansal
cfab97c8be
routerrpc: add validation to MPP params
Adds validation to ensure that MPP parameters are compatible
with the payment amount before attempting the payment. This
prevents payments from entering a path finding loop that
would eventually timeout.
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-04-10 18:17:34 +02:00
ziggie
140dd339c1
kvdb: add make specific error available in kvdb package 2025-04-09 18:47:54 +02:00
ziggie
490347b056
multi: update walletdb package 2025-04-09 18:47:53 +02:00
Oliver Gugger
867d27d68a
Merge pull request #9689 from starius/fix-typos
chainrpc: fix description of several methods
2025-04-09 11:17:13 +02:00
Boris Nagaev
acd296e760
chainrpc: fix description of several methods
They pointed to a non-existing type ChainNotifierService. The actual name
of the interface is ChainNotifierServer.
2025-04-08 17:43:23 -03:00
Oliver Gugger
aaf0a19b06
Merge pull request #9682 from guggero/make-space-for-build
GitHub: disable cache, remove hosted tools cache
2025-04-07 16:06:37 +02:00
Oliver Gugger
5ac72ed282
GitHub: disable cache, remove hosted tools cache
In an attempt to fix the "out of disk space" build error during release
builds, we first disable using Golang caches (which can be quite large)
and then remove a bunch of pre-installed tools and their caches to
provide some additional disk storage.
2025-04-07 12:23:16 +02:00
Oliver Gugger
a7c2c47397
Merge pull request #9670 from Roasbeef/19-rc2
build: bump version to v0.19.0 rc2
2025-04-07 10:08:25 +02:00
Olaoluwa Osuntokun
a7e89c130d
build: bump version to v0.19.0 rc2 2025-04-04 18:43:13 -07:00
Olaoluwa Osuntokun
676414b9d7
build: update to latest versions of sqldb+kvdb 2025-04-04 18:43:09 -07:00
Olaoluwa Osuntokun
f0ea5bf3b0
Merge pull request #9672 from Roasbeef/kvdb-sqlite-incremental-vacuum
kvdb/sqlite: enable incremental auto_vacuum on DB creation
2025-04-04 17:57:51 -07:00
Olaoluwa Osuntokun
9eef2a0d6c
build: temp replace for sqldb+kvdb 2025-04-04 15:49:29 -07:00
Olaoluwa Osuntokun
9f5bf49ac7
sqldb/sqlite: enable incremental auto_vacuum on DB creation 2025-04-04 15:49:29 -07:00
Olaoluwa Osuntokun
a0d6a5591f
kvdb/sqlite: enable incremental auto_vacuum on DB creation
In this commit, we make a change that enables the `auto_vacuum =
incremental` pragma for SQLite databases, but only when the database
file is first created. Incremental auto-vacuum allows SQLite to reclaim
unused space within the database file over time, preventing indefinite
growth.
2025-04-04 15:49:29 -07:00
Olaoluwa Osuntokun
580935a4a4
Merge pull request #9669 from Roasbeef/rbf-taproot-downgrade
multi: downgrade to legacy coop close for taproot channels
2025-04-04 14:38:36 -07:00
Olaoluwa Osuntokun
96662ad43a
lncfg: mention that taproot chans aren't supported for rbf close 2025-04-04 14:38:12 -07:00
Olaoluwa Osuntokun
1fc2c64770
itest: test all combos of rbf close and taproot chans
In this commit, we test all the combinations of rbf close and taproot
chans. This ensures that the downgrade logic works properly.

Along the way we refactor the tests slightly, and also split them up, as
running all the combos back to back mines more than 50 blocks in a test,
which triggers an error in the itest sanity checks.
2025-04-03 16:23:36 -07:00
Olaoluwa Osuntokun
c5d3d76c33
peer+server: downgrade to legacy coop close for taproot channels
In this commit, we implement logic to downgrade to the legacy coop close
for taproot channels. Before this commit, we wouldn't allow nodes to
start up with both the taproot flag and the rbf flag activated.

In the future, once we implement the spec updates, we'll add support for
this combo, and can revert parts of this commit.
2025-04-01 16:41:26 -07:00
Oliver Gugger
6a3845b79d
Merge pull request #9667 from guggero/kvdb-update
mod: bump kvdb to latest tagged version v1.4.13
2025-04-01 21:30:22 +02:00
Oliver Gugger
973db1b305
mod: bump kvdb to latest tagged version v1.4.13
After merging #9665, we can now bump to the tagged version.
2025-04-01 18:42:28 +02:00
András Bánki-Horváth
2f8a2510d0
Merge pull request #9665 from bhandras/kvdb-etcd-bump
kvdb: bump etcd libs to v3.5.12
2025-04-01 18:37:07 +02:00
Oliver Gugger
11d3a68561
Merge pull request #9666 from bhandras/invoice-bucket-tombstone-log-removal
lnd: remove unnecessary debug log to avoid misunderstanding
2025-04-01 18:33:25 +02:00
András Bánki-Horváth
54978afab5
Merge pull request #9655 from bhandras/bw-compat-test-sqlite
scripts+bw-compatibility-test: update Dave and make it use sqlite
2025-04-01 17:35:48 +02:00
Andras Banki-Horvath
0c8b0351d6
lnd: remove unnecessary debug log to avoid misunderstanding 2025-04-01 13:03:56 +02:00
Andras Banki-Horvath
e8825f2098
build: add temporary kvdb mod replace 2025-04-01 12:40:32 +02:00
Andras Banki-Horvath
377397e8bc
kvdb: bump etcd libs to v3.5.12 2025-04-01 12:40:31 +02:00
Olaoluwa Osuntokun
b01f4e5148
Merge pull request #9657 from bartoli/bartoli-patch-1
Fix release build command
2025-03-31 11:14:17 -07:00
Andras Banki-Horvath
a427a872a0
scripts+bw-compatibility-test: run and update Dave with sqlite 2025-03-31 16:02:55 +02:00
Olivier BARTHELEMY
336799ad48 Fix release build command
vendor folder needs to be inside lnd-source folder for the following comands to work, but the two tar commands extract them in separate folder
2025-03-31 13:01:09 +01:00
Oliver Gugger
856dc2db79
Merge pull request #9636 from guggero/review-checklist
README+docs: add code review checklist
2025-03-28 16:18:10 -06:00
Andras Banki-Horvath
be2bab90ce
build: add sqlite support to the dev.Dockerfile build 2025-03-28 19:07:33 +01:00
Oliver Gugger
b6d8ecc747
Merge pull request #9654 from bhandras/use-sqldb-v1.0.8
mod: use sqldb v1.0.8
2025-03-28 10:32:44 -06:00
Oliver Gugger
d0032b1251
README+docs: add code review checklist
We want to encourage new contributors to review code instead of creating
their own PRs as a first contribution.
2025-03-28 09:53:15 -05:00
Andras Banki-Horvath
be71d75a6c
mod: use sqldb v1.0.8 2025-03-28 15:02:17 +01:00
Oliver Gugger
b85571b94b
Merge pull request #9647 from bhandras/sqldb-migration-base-version
sqldb: establish a base DB version even if it's not yet tracked
2025-03-28 07:59:22 -06:00
Andras Banki-Horvath
83d4b7b6b8
docs: update release notes 2025-03-28 11:00:58 +01:00
Andras Banki-Horvath
6291fbcf70
mod: add temp sqldb replace 2025-03-28 11:00:58 +01:00
Andras Banki-Horvath
4c4aeddeb0
sqldb: add unit test for the v0.19.0-rc1 migration bug 2025-03-28 11:00:58 +01:00