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
kvdb/v1.4.13
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
sqldb/v1.0.8
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
Andras Banki-Horvath
83d62308e9
sqldb: test schema migration idempotency
2025-03-28 11:00:57 +01:00
Andras Banki-Horvath
7e54682493
sqldb: fix dirty migration in v0.19.0-rc1
2025-03-28 11:00:57 +01:00
Andras Banki-Horvath
dae212697d
sqldb: establish a base DB version even if it's not yet tracked
...
Previously, if a DB version wasn't available, we re-ran all schema
migrations without verifying the schema version. However, setting a
base schema version is essential because some earlier migrations were
not idempotent. This commit addresses the issue by using the current
schema version provided by sqlc as the base.
2025-03-28 11:00:57 +01:00
Andras Banki-Horvath
65b2bac81c
sqldb: make migration 1 and 3 idempotent
2025-03-28 11:00:56 +01:00
András Bánki-Horváth
b6cf1bcaa0
Merge pull request #9630 from xinhangzhou/master
...
refactor: use maps.Copy for cleaner map handling
2025-03-28 07:54:34 +01:00
Oliver Gugger
eb822a5e11
Merge pull request #9504 from guggero/closedchannels
...
lnrpc+rpcserver: add custom channel data for closed channels
2025-03-27 12:33:48 -06:00
Oliver Gugger
177bbd2721
docs: add release notes
2025-03-27 12:38:49 -05:00
Oliver Gugger
82b7891e2d
rpcserver: add custom channel data to pending channels
...
The pending force close and pending waiting close channels didn't have
their custom channel data populated yet.
2025-03-27 12:38:49 -05:00
Oliver Gugger
bab5cabd90
lnrpc+rpcserver: add custom channel data for closed channels
...
This commit adds the custom channel data for closed channels which
represents the initial funding state as well as the final balances at
closing time.
2025-03-27 12:38:47 -05:00
Oliver Gugger
a53c6dda64
Merge pull request #9650 from Roasbeef/early-offer-chan-flushing-flake
...
lnwallet/chancloser: fix flake in TestRbfChannelFlushingTransitions/early_offer
2025-03-27 08:18:07 -06:00
Yong
15dbc43f51
Merge pull request #9627 from yyforyongyu/sweep-under-budget
...
Sweep inputs even the budget cannot be covered
2025-03-27 13:31:25 +08:00
Olaoluwa Osuntokun
f08e7fe0d6
lnwallet/chancloser: fix flake in TestRbfChannelFlushingTransitions/early_offer
...
In this commit, we fix a flake in the
`TestRbfChannelFlushingTransitions/early_offer` test. The fix is simple:
this is actually an "iteration", as we have a self transition to the
ChannelNegotiation state first. We also don't need to send the
remoteOffer, so we set `sendInit` to false. The offer still needs to be
passed in to ensure that the assertions work however.
2025-03-26 16:36:13 -07:00
Olaoluwa Osuntokun
a307280c40
protofsm: reduce log spam during state transitions
...
In this commit, we reduce log spam a bit during state transitions. We
only log the type of the event when sending the event, as we'll print
the same event when creating the queue "applying", and later when
processing". Next we remove the "applying" log as that first event will
always be logged twice.
The combo of these to changes makes the logs much easier to follow.
2025-03-26 16:36:11 -07:00
Oliver Gugger
193d2a6581
Merge pull request #9649 from guggero/cmd-fix
...
cmd: fix incorrect error code
2025-03-26 13:19:43 -06:00
Oliver Gugger
04533e924c
cmd: fix incorrect error code
...
Fixes a bug introduced by #9605 , fixes #9648 .
We return a specific error in the RPC permission interceptor for the
case where the wallet is already unlocked or is still locked.
We need to catch those errors correctly to give the user a bit more
context on what to do.
2025-03-26 11:28:59 -05:00
Oliver Gugger
f48e5098b1
Merge pull request #9643 from yyforyongyu/fix-startup
...
lnd: make sure startup flow is not aborted
2025-03-26 07:56:46 -06:00
yyforyongyu
ec2f3add6e
sweep: remove dead code
2025-03-26 18:24:48 +08:00
yyforyongyu
c7bea07d58
sweep: start the sweeping if there are normal inputs
...
We now start the sweeping process if there are normal inputs to
partially cover the budget.
2025-03-26 18:24:47 +08:00
yyforyongyu
b6daa3bad4
docs: update release notes
2025-03-26 18:24:47 +08:00
yyforyongyu
43409c7840
rpcserver: use HtlcIndex
as the unique key
2025-03-26 18:24:47 +08:00
yyforyongyu
70dec8e169
lnd: log sync status in GetInfo
...
This is added to fix a flake found in starting the node.
2025-03-26 18:24:47 +08:00
yyforyongyu
8ad122bd03
itest: add testBumpFeeLowBudget
2025-03-26 18:24:47 +08:00
yyforyongyu
64f7a7f3d0
lntest+itest: update block height in MineBlockWithTx
...
Make sure we update the harness's current height and assert nodes have
been synced. Also fixes some typo found.
2025-03-26 18:24:47 +08:00
yyforyongyu
883381d266
lntest+itest: return the tx from FundCoins
...
This is used is a following test.
2025-03-26 18:24:46 +08:00
yyforyongyu
4abc1461ad
itest: refactor runBumpFee
to fix a flake
...
Make sure we assertPendingSweepResp in a wait call to wait for the
updated resp.
2025-03-26 18:24:46 +08:00
yyforyongyu
eea3561eea
sweep+itest: return next retry fee rate in TxFailed
event
...
We now return the next retry fee rate in `TxFailed` event in
`TxPublisher`. When handling the event, `UtxoSweeper` will update the
inputs to make sure the starting fee rate is set before attempting the
next sweep.
2025-03-26 18:24:44 +08:00
yyforyongyu
6dbf4ce470
sweep: add method calculateRetryFeeRate
...
A minor refactor to prepare the upcoming changes.
2025-03-26 15:26:11 +08:00
yyforyongyu
861dc145bf
sweep: create sweep tx even the budget cannot be met
...
We now always create the sweeping tx even though the budget cannot be
covered so we don't miss the deadline. Note that the fee bump will fail
once the provided wallet input cannot cover the increase fees, which is
fine as these inputs will be marked as failed and be retried again in
the next block. When that happens, if there are new wallet UTXOs, a new
batch will be created to perform the fee bump.
2025-03-26 15:26:08 +08:00
yyforyongyu
3c4fd1b484
sweep: refactor AddWalletInputs
by adding addWalletInput
...
A minor refactor to prepare for upcoming changes.
2025-03-26 14:25:29 +08:00
yyforyongyu
1e0ddf3a16
docs: update release notes
2025-03-26 14:15:52 +08:00