Oliver Gugger
4c48402868
Merge pull request #9222 from ffranr/add-maybesome-opt
...
Improve Option documentation and add MaybeSome function
2024-10-30 09:31:38 +01:00
Elle
7ceb3d61b5
Merge pull request #9213 from ellemouton/updateSubmodules
...
go.mod: update LND sub-module deps
2024-10-30 09:13:07 +02:00
ffranr
71298f7614
fn: fix documentation comment for Option
...
Remove the type generic from the `Option` type struct in the doc
comment.
2024-10-29 20:16:20 +00:00
ffranr
c49d038540
fn: add OptionFromPtr function
...
Add a function `OptionFromPtr` that constructs an `Option` from a
pointer. The function signature is: `OptionFromPtr : *A -> Option[A]`.
This utility has proven useful in the taproot-assets project.
2024-10-29 20:16:20 +00:00
yyforyongyu
611405f59c
chainntnfs/btcdnotify: remove redundant config params re-assignment
2024-10-30 02:01:14 +08:00
Elle Mouton
b4d098fb29
go.mod: update LND sub-module deps
2024-10-29 15:01:00 +02:00
Oliver Gugger
4778b146cc
Merge pull request #9219 from myxmaster/improve-sanitycheckfee-error-msg
...
chanfunding: improve sanityCheckFee error message for clarity
2024-10-29 13:07:06 +01:00
Oliver Gugger
4e54db4ac8
Merge pull request #9228 from yyforyongyu/fix-itest-flakes
...
itest: fix flake in `payment_failure_reason_canceled`
2024-10-29 13:05:32 +01:00
yyforyongyu
785e058b77
itest: fix flake in testPaymentFailureReasonCanceled
...
Fix the case,
```
--- FAIL: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled (20.86s)
harness.go:2113:
Error Trace: /home/runner/work/lnd/lnd/lntest/harness.go:2113
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1183
/home/runner/work/lnd/lnd/itest/lnd_payment_test.go:1138
/home/runner/work/lnd/lnd/lntest/harness.go:396
/home/runner/work/lnd/lnd/itest/lnd_test.go:139
Error: err from HTLC interceptor stream
Test: TestLightningNetworkDaemon/tranche01/46-of-191/bitcoind/payment_failure_reason_canceled
Messages: received err from HTLC interceptor stream: rpc error: code = Unknown desc = interceptor already exists
```
2024-10-29 15:32:17 +08:00
yyforyongyu
21535826ba
lntest: remove redundant MineBlocks
2024-10-29 15:31:21 +08:00
myxmaster
7b5b92ff02
chanfunding: improve sanityCheckFee error message for clarity and update coin_select_test accordingly
2024-10-28 20:04:34 +01:00
Oliver Gugger
5cec466fad
Merge pull request #9212 from ellemouton/slogFollowUps
...
multi: update log dep for sub-modules
2024-10-28 16:32:46 +01:00
Boris Nagaev
4b87072514
itest: coop_close_with_external_delivery with p2tr
...
Customize the itest with the type of external delivery address. Test with P2TR
address type in addition to P2WKPH.
2024-10-28 11:10:41 -03:00
Boris Nagaev
9fec11eeb5
lnwallet: fix closechannel for P2TR external addr
...
If the delivery address is P2TR, function InternalKeyForAddr checks its
existance in the wallet to return internal key for it in case it is a custom
taproot channel. It used to return the error returned by wallet.AddressInfo.
The error is now ignored if it is ErrAddressNotFound error. This fixes
"lncli closechannel --delivery_addr <external p2tr address" case.
2024-10-28 11:08:15 -03:00
Oliver Gugger
c37baa68d8
Merge pull request #9226 from sputn1ck/sendcoins_selectutxo_fix_amt
...
cmd/sendcoins: fix display amount if select utxo and sweepall is set
2024-10-28 11:34:12 +01:00
sputn1ck
6be3e5b609
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.
2024-10-28 10:03:52 +01:00
Elle Mouton
67419a7c0c
Revert "kvdb/postgres: remove global application level lock"
...
This reverts commit 43a1ca4f3d
.
2024-10-28 09:35:18 +02:00
Elle Mouton
a03d5fcb9e
tor: update btclog dep
2024-10-26 14:18:32 +02:00
Elle Mouton
83751ee208
sqldb: update btclog dep
2024-10-26 14:18:00 +02:00
Elle Mouton
a6e68cb6b8
kvdb: update btclog dep
2024-10-26 14:16:31 +02:00
Elle Mouton
de358667f3
healthcheck: bump btclog dep
2024-10-26 14:16:25 +02:00
Elle Mouton
1e39e3758e
build: apply log type flags in NewDefaultLogHandlers
...
So that the logging config "Disable" options and log type flags are all
handled in one place. Other repo's can then re-use this nicely.
2024-10-26 14:15:14 +02:00
Animesh Bilthare
ecd4480331
watchtower: Add retry logic for fetching blocks
...
By default, try to fetch the blocks 3 more times
in case of error.
2024-10-26 16:59:13 +05:30
Oliver Gugger
acbb33bb7b
Merge pull request #9220 from oren-z0/issue-9169-code-comments-fix
...
Fix comments regarding breach hint and key calculations
2024-10-25 11:14:22 +02:00
Oliver Gugger
582468c0f6
Merge pull request #9199 from GeorgeTsagk/htlc-modify-cancel-htlc
...
Add `cancelSet` flag HtlcModify interface
2024-10-25 10:57:09 +02:00
Oren
54b30423a3
watchtower: fix comments on breach hint and key
2024-10-25 00:07:04 +03:00
George Tsagkarelis
4b1bb102bf
invoices: cancel htlc on HtlcModify signal
2024-10-24 12:59:29 +02:00
George Tsagkarelis
1c17356fdc
lnrpc+invoices: add cancelSet to HtlcModifier interface
2024-10-24 12:59:28 +02:00
Carla Kirk-Cohen
38bfe1bb86
routerrpc: add docs to forward interceptor
2024-10-23 10:28:07 -04:00
Oliver Gugger
e488002db5
Merge pull request #9214 from guggero/release-go-version-check
...
makefile+scripts: add Go version check to release command
2024-10-23 14:20:38 +02:00
ffranr
7919b3f204
makefile+scripts: add Go version check to release command
...
This commit updates `scripts/release.sh` to include a check for the
correct Go version before executing the release build. This ensures that
the release binaries are built with the specified Go version,
maintaining consistency and integrity for developer signatures.
2024-10-23 13:34:35 +02:00
Elle
b4ef22bf47
Merge pull request #9083 from ellemouton/slog
...
log: structured logging
2024-10-22 20:00:56 +02:00
Yong
6a5a79fb88
Merge pull request #9209 from guggero/lntest-shutdown
...
lntest: shutdown all nodes at end of test
2024-10-23 02:00:39 +08:00
Oliver Gugger
5f20fd4d9f
lntest: shutdown all nodes at end of test
...
Fixes an issue where the standby nodes would keep running even after the
test finished (successfully or with a failure).
2024-10-22 18:12:16 +02:00
Elle Mouton
30d39ac595
build+sample_conf: option to print log call-site
2024-10-22 17:07:50 +02:00
Elle Mouton
eddcdb2a5a
docs: add release note entry
2024-10-22 17:03:56 +02:00
Elle Mouton
9d0cd3ff4f
multi: update more loggers to the v2 type
2024-10-22 17:03:56 +02:00
Elle Mouton
49bfbecc4e
build: add CriticalS to ShutdownLogger
...
Ensure that the ShutdownLogger correctly calls shutdown for the new
CriticalS method added to the btclog.Logger.
2024-10-22 17:03:56 +02:00
Elle Mouton
ba1ce84b27
build: update prefixed logger
...
Such that it implements the new expanded interface of btclog v2.
2024-10-22 17:03:56 +02:00
Elle Mouton
23602e017e
multi: start updating various loggers to use the new v2 type
2024-10-22 17:03:55 +02:00
Elle Mouton
a8da3e525b
build: add styling option for console logger
...
This will only be available when the dev build tag is set
2024-10-22 17:03:55 +02:00
Elle Mouton
cfa7fceb0b
build+config: add default handler constructor
...
Since most of our projects will use the same handler duo and apply the
config options the same way, let's make our lives easier and add a
default handler constructor.
2024-10-22 17:03:55 +02:00
Elle Mouton
5ed7bf1b71
config: add logging config options
...
This commit adds config options so that users can for both the console
logger and the file logger set the following things:
- disable the logger
- omit timestamps from log lines.
2024-10-22 17:03:55 +02:00
Elle Mouton
cd697913ef
build: switch to slog Handlers
...
Start using the new slog handlers. With this commit we also remove the
need for the LogWriter since we let our LogRotator implement io.Writer
and pass that in to our log file handler.
2024-10-22 17:03:51 +02:00
Elle Mouton
9a9761008c
build: add handler set implementations
...
This commit then also adds an implementation of the btclog.Handler
interface called `handlerSets` which basically lets us have a Handler
backed by many Handlers (we need one for the stdout and one for our log
file).
2024-10-22 15:29:34 +02:00
Elle Mouton
387a1a8831
build: separate sublogger and rotator pipe management
...
These are two separate concerns. So this commit splits them up and just
passes a LogWriter from the one to the other. This will become cleaner
in an upcoming commit where the Rotator will implement io.Writer and
there will no longer be a need for LogWriter.
2024-10-22 15:19:58 +02:00
Elle Mouton
ec5b39c120
build: move LevelSubLogger to own file
...
To make the upcoming commits easier to review and for general code
organisation.
2024-10-22 15:17:10 +02:00
Yong
caff5a00d1
Merge pull request #9138 from ziggie1984/detail_debug_process
...
Detail LND's debug procedures.
2024-10-22 20:26:11 +08:00
Oliver Gugger
91c82c1938
Merge pull request #9206 from Roasbeef/roasbeef-pgp-2024
...
scripts/key: add new gpg key for roasbeef
2024-10-22 09:23:57 +02:00
Olaoluwa Osuntokun
49275e1d46
Merge pull request #9197 from guggero/aux-signer-batching-fixes
...
[custom channels]: Aux signer batching fixes
2024-10-21 17:49:15 -07:00