Commit Graph

17508 Commits

Author SHA1 Message Date
Keagan McClelland
1480287cfc
fn: breaking - improve naming of option api functions 2024-11-06 17:32:59 -07:00
Keagan McClelland
be50dd9acb
fn: breaking - remove deprecated Result functions 2024-11-06 17:32:59 -07:00
Keagan McClelland
1805fd6f19
fn: breaking - polish Either API 2024-11-06 17:32:58 -07:00
Keagan McClelland
c6734ea013
fn: breaking - reverse argument order in slice funcs 2024-11-06 17:32:50 -07:00
Keagan McClelland
a026d64c1b
fn: breaking - fix type variables for better inference 2024-11-06 16:50:06 -07:00
Keagan McClelland
9bbd327a10
fn: add Sink to Result 2024-11-06 16:50:02 -07:00
Keagan McClelland
5dec35426c
fn: add transpositions for Option and Result 2024-11-06 16:40:36 -07:00
Keagan McClelland
8971c4c3ae
fn: add operations to Result API 2024-11-06 16:40:15 -07:00
Keagan McClelland
5faad77f33
fn: add conversions between Result and Option 2024-11-06 16:39:33 -07:00
Keagan McClelland
a741c54175
fn: add compound slice functions 2024-11-06 16:29:41 -07:00
Keagan McClelland
7a7f3bdb2c
fn: fix UnwrapOrFail semantics 2024-11-06 15:55:18 -07: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
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
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
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