Commit graph

16467 commits

Author SHA1 Message Date
Calvin Zachman
6a3a2ee61d
lnd/healthcheck: add healthcheck onSuccess/onFailure callbacks
Allow package users to provide custom callback which will
execute whenever a healthcheck fails.

Allow package users to provide custom callback which will
execute whenever a healthcheck succeeds.
2024-03-12 09:36:35 -05:00
Calvin Zachman
80c2ac8ed3
lnd/healthcheck: add health checks dynamically
Allow health checks to be added to our monitor after
the initial startup.
2024-03-12 09:12:24 -05:00
Oliver Gugger
5cb4811e86
Merge pull request #8425 from ProofOfKeags/refactor/lnwallet/chan-point-leaks
[EZ Review]: avoid leaking pointers to authoritative ChannelPoint
2024-03-11 00:55:41 -06:00
Oliver Gugger
780ffe913c
Merge pull request #8527 from cuinix/master
chore: remove repetitive words
2024-03-11 00:33:26 -06:00
Keagan McClelland
659ad459bb brontide: placate linter 2024-03-08 15:54:25 -08:00
Keagan McClelland
16be46c1e5 htlcswitch: prevent ChannelLink from leaking ChannelPoint pointer 2024-03-08 15:48:02 -08:00
Keagan McClelland
db39a905cb multi: make NewChanIDFromOutpoint accept value instead of pointer 2024-03-08 15:47:55 -08:00
Keagan McClelland
fd1cd315ce multi: don't leak underlying pointer to LightningChannel.ChannelPoint() 2024-03-08 15:27:19 -08:00
Oliver Gugger
4f06f58791
Merge pull request #8483 from ProofOfKeags/feature/for-loop-destroyer
fn: add slice utilities
2024-03-08 01:48:38 -06:00
Oliver Gugger
d9048d1f3d
Merge pull request #8533 from Roasbeef/code-owners
github/CODEOWNERS: rename code owners file to soft deactivate
2024-03-08 01:35:54 -06:00
Olaoluwa Osuntokun
482b0ad7b4
github/CODEOWNERS: rename code owners file to soft deactivate
In this commit, rather than attempt to reduce the scope of the current
`CODEOWNERS` file, we instead rename it as a way to stop Github from
automatically assigning reviewers based on it. Instead, we put things in
a "hint" mode as a way for PR OPs to figure out who they should manually
assign PRs today.

With the CODEOWNERS file reduced to a code review assignment hint, we
aim to instead promote usage of the `@code-review` team which will use a
load balancing algorithm for automatic code review assignment.
2024-03-07 17:15:22 -08:00
Keagan McClelland
e9b3808c29 lnwallet+contractcourt: remove redundant ChanPoint field 2024-03-07 14:16:16 -08:00
Oliver Gugger
5ccb9db78f
Merge pull request #8526 from guggero/confirm-closeallchannels
cli: add confirmation prompt to closeallchannels
2024-03-07 02:31:46 -06:00
Oliver Gugger
bb5b614af5
docs: add release notes 2024-03-07 09:12:13 +01:00
Oliver Gugger
92ae54d7ae
cmd/lncli: add confirmation promt to closeallchannels
To make sure users don't accidentally close all channels, we ask before
running this potentially very destructive command.
2024-03-07 09:12:12 +01:00
cuinix
60bc30dd08 remove repetitive words
Signed-off-by: cuinix <915115094@qq.com>
2024-03-07 14:05:47 +08:00
Olaoluwa Osuntokun
716c6dddd8
Merge pull request #8052 from bhandras/sql-invoices
sqldb: `InvoiceDB` implementation
2024-03-06 21:15:14 -06:00
Olaoluwa Osuntokun
d5138c1039
Merge pull request #8505 from yyforyongyu/version-check-testmempool
lnwallet: skip `testmempoolaccept` when the backend version is too low
2024-03-06 17:35:55 -06:00
ProofOfKeags
56f17afeeb
Merge pull request #8517 from ProofOfKeags/cleanup/link-weeds
htlcswitch+peer+lnwire: pull weeds
2024-03-06 16:05:44 -07:00
yyforyongyu
c9f857e426
docs: update release notes 2024-03-07 06:45:33 +08:00
yyforyongyu
0d4472c5ea
lnwallet: skip TestMempoolAccept for old backend versions 2024-03-07 06:45:33 +08:00
yyforyongyu
a21e6610f2
gomod: update btcd and btcwallet versions 2024-03-07 06:45:30 +08:00
Keagan McClelland
59700892b7 lnwire: make LinkUpdater a subclass of Message
Conceptually, all messages that are capable of identifying the
channel_id on which they operate are themselves messages. Here we
codify this.
2024-03-06 11:59:19 -08:00
Keagan McClelland
f5f0286e34 peer+lnwire: move LinkUpdater to lnwire
The purpose of this interface is to distinguish messages that are
bound to a particular channel_id from those that are not. There is
no reason this ought to be a property of the peer package as it is
entirely determined by the contents of the message itself. Therefore
we move it to the lnwire package so it can be used without having
import cycles elsewhere in the codebase.
2024-03-06 11:59:19 -08:00
Keagan McClelland
3761912680 htlcswitch: avoid leaking peer interface from link
Here we notice that the only use of the Peer call on the link is
to find out what the peer's pubkey is. To avoid leaking handles to
IO actions outside the interface we reduce the surface area to
just return the peer's public key.
2024-03-06 11:59:09 -08:00
Oliver Gugger
5f89a8b832
Merge pull request #8523 from guggero/linter-use-cache
make: use Golang build and module cache for linter
2024-03-06 07:28:10 -06:00
Oliver Gugger
834371c995
make: use Golang build and module cache for linter
This commit gives the linter container access to the local machine's
build and module cache, drastically decreasing the run time of
subsequent linter runs (no difference on first run with this change).
2024-03-06 13:38:51 +01:00
Keagan McClelland
be69b022d9 htlcswitch: remove Switch reference from channelLink 2024-03-05 16:43:29 -08:00
Oliver Gugger
6cef367336
Merge pull request #8136 from hieblmi/fee-estimation-probe
Probing for more reliable route fee estimation
2024-03-05 11:35:57 -06:00
Slyghtning
fba6fdaf94
docs: update release notes 2024-03-05 09:24:27 +01:00
Slyghtning
814e1a79a6
lncli: add estimateroutefee command 2024-03-05 09:24:27 +01:00
Slyghtning
e79b8b2986
itest: estimate route fee tests 2024-03-05 09:24:27 +01:00
Slyghtning
ef069b658d
itest: preparatory fee estimation changes 2024-03-05 09:24:27 +01:00
Slyghtning
7d9589ecbf
routerrpc+zpay32: EstimateRouteFee overhaul
In this commit the mission control based fee estimation
is supplemented with a payment probe estimation which can
lead to more accurate estimation results. The probing
utilizes a hop-hint heurisic to detect routes through LSPs
in order to manually estimate fees to destinations behind
an LSP that would otherwise block the payment probe.
2024-03-05 09:24:27 +01:00
Slyghtning
24080c51f9
multi: fee estimation timeout parameters
conf: fee estimation timeout in sample config
2024-03-05 09:24:27 +01:00
Slyghtning
721038d1a4
routerrpc: overhaul RouteFeeRequest with probing parameters. 2024-03-05 09:24:25 +01:00
Keagan McClelland
2bd9911804 fn: add slice utilities
In the year of our lord 2024 we should not be writing for loops
for standard operations. Here we introduce named slice operations
not found in the golang slices package. Note all these functions
are pure.
2024-03-02 11:43:07 -08:00
Olaoluwa Osuntokun
f61761277f
Merge pull request #8513 from lightningnetwork/lnd-master-version-17-99
build: bump version to v0.17.99
2024-03-01 13:58:48 -06:00
Oliver Gugger
10a6861bc9
build: bump version to v0.17.99
In this commit, we bump the version of the master branch to v0.17.99.
This reflects the fact that master will be a super set of all the minor
releases until v0.18, and will also include changes towards v0.18.
2024-03-01 10:29:04 +01:00
Andras Banki-Horvath
6c09617568
docs: update release notes for v0.18.0-beta 2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
29ae17ba71
github: add nativesql itests to the matrix 2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
ba8e7550d5
itest: add the -nativesql flag to run SQL itests with native SQL tables 2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
7a45bbbeab
lnd: call into the correct InvoiceStore from RPC calls 2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
42508d44e5
lnd: update sample-lnd.conf 2024-03-01 10:08:10 +01:00
Andras Banki-Horvath
ce1b57da2d
sqldb: exclude sqlite from the JS and unsupported platform builds 2024-03-01 10:08:09 +01:00
Andras Banki-Horvath
88370de1ab
lnd: use native SQL invoice store if configured 2024-03-01 10:08:09 +01:00
Andras Banki-Horvath
e31879ea0a
lncfg: instantiate the native SQL backend if configured
This commit adds an optional separate "native" SQL backend that will
host all tables supporting native SQL. For now since we don't have many
such tables we'll keep it in one file for SQLite, but it may be split up
if desired.
2024-03-01 10:08:09 +01:00
Andras Banki-Horvath
debfaf41b9
lncfg: use the sqldb config types instead of the kvdb counterparts 2024-03-01 10:08:09 +01:00
Andras Banki-Horvath
aba45018a8
sqldb: merge SQLite and Postgres configs with the kvdb counterparts
This commit is part of a refactor that unifies configuration of the
sqldb and kvdb packages for SQL backends.
In order to unify the SQLite and Postgres configuration under sqldb we
first need to ensure that the final config types are compatible with
the alreay deployed versions.
2024-03-01 10:08:09 +01:00
Andras Banki-Horvath
aee1f7f563
invoices: run InvoiceStore and InvoiceRegistry tests on PostgreSQL too 2024-03-01 10:08:09 +01:00