19742 Commits

Author SHA1 Message Date
Yong
1ee3b95f6d Merge pull request #10221 from ziggie1984/update-bbolt
Update bbolt
2025-09-17 19:45:39 +08:00
ziggie
1dda376404 mod: update etcd/bbolt lib to newest version
Version v1.4.3 has some important bugfixes. We bump both version
in the same go so we do not need to tag the kvdb package and the
latest version of will be used.
2025-09-16 23:08:27 +02:00
Yong
cbed86e21d Merge pull request #10189 from ziggie1984/fix-fee-estimation
bugfix error matching sweeper
2025-09-17 00:53:10 +08:00
ziggie
1f23c8b0eb docs: add release-notes 2025-09-16 14:25:42 +02:00
ziggie
9a83b3838f mulit: use min relay fee error 2025-09-16 14:25:42 +02:00
ziggie
5bcea78dc2 sweep: fix bug in mock interface 2025-09-16 14:25:42 +02:00
ziggie
d257198365 sweep: add missing output to the weight estimation
When overlay channels are used the extra output needs to be
considered.
2025-09-16 14:25:42 +02:00
ziggie
22ac4082a4 chainntfs: zero out pkscript in logging when taproot is enabled 2025-09-16 14:25:42 +02:00
ziggie
a26a7a3082 mod: update btcwallet version to v16.17 2025-09-16 14:13:27 +02:00
Yong
9a6d34a028 Merge pull request #10218 from ellemouton/docs-fix-graph-links
docs: improve readability of graph SQL work
2025-09-16 15:16:48 +08:00
Elle Mouton
48674cf28c docs: improve readability of graph SQL work 2025-09-15 12:50:33 +02:00
Elle
6b279fb243 Merge pull request #9975 from MPins/issue-9591
Add Support for P2TR Fallback Addresses in BOLT-11
2025-09-15 10:24:44 +02:00
Yong
0c1746a093 Merge pull request #10174 from hexcow/patch-1
chore(ci): upgrade checkout to v5
2025-09-15 15:29:55 +08:00
MPins
97f2fbb2b2 doc: release-notes-0.20.0 2025-09-12 12:26:37 -07:00
MPins
9d792505e9 zpay32: add test case for P2TR fallback addresses 2025-09-12 12:26:30 -07:00
MPins
e746df3caa zpay32: add support for P2TR fallback addresses 2025-09-12 10:46:17 -07:00
Yong
5082566ed7 Merge pull request #9677 from NishantBansal2003/conf-count
Expose confirmation count for pending 'channel open' transactions
2025-09-11 22:36:05 +08:00
Nishant Bansal
64a841b0c6 docs: add release notes
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:27:53 +05:30
Nishant Bansal
8f62efb1fa itest: add test for ConfirmationsUntilActive and ConfirmationHeight
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:27:38 +05:30
Nishant Bansal
5fd42ac61d lnrpc+rpcserver: add ConfirmationsUntilActive and ConfirmationHeight
Introduce ConfirmationsUntilActive and ConfirmationHeight in
PendingChannelsResponse_PendingChannel. ConfirmationsUntilActive indicates
the remaining confirmations needed for the channel to become active. If the
funding transaction is unconfirmed, ConfirmationsUntilActive defaults to the
total required confirmations (NumConfsRequired). ConfirmationHeight records
the block height at which the funding transaction was first confirmed; if
unconfirmed, it will be 0.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:27:14 +05:30
Nishant Bansal
ede08a8883 funding: persist ConfirmationHeight upon first funding confirmation
This change ensures that a channel's ConfirmationHeight is recorded in the
database once its funding transaction receives its initial confirmation.
By doing so, we establish a reliable reference point to monitor the
channel's progress toward the required confirmation depth.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:26:42 +05:30
Nishant Bansal
222f49c593 channeldb: add MarkConfirmationHeight to OpenChannel
Add the MarkConfirmationHeight method to the OpenChannel struct
to record the block height at which the funding transaction was
first confirmed. Also, introduce the ConfirmationHeight field
to persist this information in the database.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:26:16 +05:30
Nishant Bansal
7bc6331402 chainntnfs: notify BlockHeight in Updates event
Enhance the ConfirmationEvent's Updates channel by including the
BlockHeight alongside NumConfsLeft.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:25:49 +05:30
Nishant Bansal
aa9c3272e3 chainntnfs: signal reorg notification before required confirmations
In this commit, we send the reorg notification even when the
transaction has not yet reached the required confirmations, in
case the caller is interested in knowing about it.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
2025-09-11 18:24:54 +05:30
Yong
d1d3a82010 Merge pull request #9884 from ellemouton/relaxFeatureBitCheck
multi: use relaxed feature bit `Set` method for peer features
2025-09-10 17:22:16 +08:00
Yong
67880c557e Merge pull request #10149 from Roasbeef/estimate-route-fee-docs
docs: add docs for `EstimateRouteFee`
2025-09-10 13:26:00 +08:00
Yong
6c9e0f348c Merge pull request #10196 from ziggie1984/refactor-payment-part-6
refactor payments part 6
2025-09-08 15:40:36 +08:00
ziggie
f540e9c8ec paymentsdb: add helper method to set session key
This is only used for testing because we have now a unique
contraint on the session key and need to swap it in tests for
the sql backend.
pick f17baec94 paymentsdb: fix linter
2025-09-08 08:23:58 +02:00
Olaoluwa Osuntokun
221c3e8240 Merge pull request #10188 from Roasbeef/logclosure-errwhere
multi: attempt to more uniformly use SpewLogClosure across project
2025-09-07 21:09:55 -07:00
Olaoluwa Osuntokun
63a6ae502a docs: add docs for EstimateRouteFee 2025-09-05 18:32:50 -07:00
Olaoluwa Osuntokun
f77cd51671 autopilot+funding+rpc+invoices: complete migration to lazy debug logging
In this commit, we complete the migration to lnutils.SpewLogClosure for
the remaining application-layer components. This includes the autopilot
channel management system, the funding manager, the RPC server, and the
invoice storage subsystem.
2025-09-05 18:20:52 -07:00
Olaoluwa Osuntokun
2cc4079a0e routing+htlcswitch+discovery+peer+netann: optimize debug logging with lazy evaluation
In this commit, we update the network and routing layer components to use
lnutils.SpewLogClosure for debug logging.
2025-09-05 18:20:51 -07:00
Olaoluwa Osuntokun
77f2d8a572 contractcourt+sweep+watchtower: use lnutils.SpewLogClosure for debug logging
In this commit, we update the contractcourt, sweep, and watchtower
packages to use lnutils.SpewLogClosure instead of directly calling
spew.Sdump in logging statements.
2025-09-05 18:20:51 -07:00
Olaoluwa Osuntokun
6e21bc5764 lnwallet: replace spew.Sdump with lnutils.SpewLogClosure for lazy evaluation
In this commit, we replace all instances of spew.Sdump in the lnwallet
package and its subpackages with lnutils.SpewLogClosure. This change
ensures that expensive debug dump operations are only performed when the
log level actually requires them.
2025-09-05 18:20:49 -07:00
Yong
c02e94e767 Merge pull request #10187 from Roasbeef/skip-labels-green-check
build: make special label checks auto-pass instead of skip
2025-09-06 04:36:48 +08:00
ziggie
335a9b3f40 lnd: reduce max limit when querying for payments 2025-09-05 09:54:00 +02:00
ziggie
a9c30dacb5 sqldb: add helper for type boolean 2025-09-05 09:53:59 +02:00
ziggie
2d032044f9 sqldb: Make sure we do not replace keywords if they have a prefix
We don't for example want to replace CURRENT_TIMESTAMP when using
it in our tables.
2025-09-05 09:52:41 +02:00
ziggie
e20a34de46 paymentsdb: refactor attempt verification 2025-09-05 09:52:41 +02:00
ziggie
0320dfcc89 paymentsdb: add compile time check for the kv db implementation 2025-09-05 09:52:40 +02:00
ziggie
3d4ee8b874 paymentsdb: rename defaultKVStoreOptions func
We rename the modifier to use the same naming as used in the
graphDB to align the codebase.
2025-09-05 09:52:40 +02:00
Elle
9d74ec4770 Merge pull request #10163 from ellemouton/graphMigFlipSwitch
multi: switch on graph SQL migration
2025-09-05 06:54:30 +02:00
Yong
ab924be037 Merge pull request #10197 from bhandras/wallet-create-warning
commands: add extra warning on wallet creation
2025-09-05 08:08:03 +08:00
Elle Mouton
318f4aa863 docs: add release note entry 2025-09-04 18:52:00 +02:00
Elle Mouton
9ce14371e1 multi: switch on graph SQL migration
In this commit, the graph SQL migration is added to the production
build.
2025-09-04 18:52:00 +02:00
Elle
3751d7a6b6 Merge pull request #10199 from ellemouton/fixBuild
graph/db: fix type name
2025-09-04 18:50:12 +02:00
Elle Mouton
f2fa0a4da6 graph/db: fix type name 2025-09-04 17:10:44 +02:00
Yong
e46c676894 Merge pull request #10162 from ellemouton/graphMigUnwrapDNSAddrs
graph/db: unwrap dns addresses from opaque ones during migration
2025-09-04 22:29:49 +08:00
Andras Banki-Horvath
ac18094a09 commands: add extra warning on wallet creation 2025-09-04 15:21:28 +02:00
Elle
d9647f8b79 Merge pull request #10193 from ellemouton/fixSQLStrHelper
sqldb: fix SQLStr helper
2025-09-04 12:07:25 +02:00