Commit Graph

16954 Commits

Author SHA1 Message Date
0176fca826 lnwire: add wire type for stfu 2024-08-05 17:22:56 -07:00
c262b1b5a5 Merge pull request #8968 from ProofOfKeags/opening-party
[MICRO]: channeldb+lnwallet: add OpeningParty API
2024-08-05 16:42:22 -07:00
a2b19afe59 channeldb+lnwallet: define Initiator for OpenChannel and LightningChannel
This commit introduces a new API to return information on which party opened
the channel using the new ChannelParty type. It does not change the underlying
structure of how we store this information.
2024-08-05 12:58:46 -07:00
4e5728f58a Merge pull request #8974 from ellemouton/falafelUpdate
lnrpc: update falafel version
2024-08-05 19:20:06 +02:00
f341d4c65f Merge pull request #8977 from ellemouton/fixTestRace
routing: fix race in TestNewRouteRequest
2024-08-05 18:36:56 +02:00
6ab34665fb routing: fix race in TestNewRouteRequest
The `err` variable was being shared by the parallel threads.
2024-08-05 16:07:03 +02:00
2d00859b75 mobile: correct output directory for generated files 2024-08-05 16:00:00 +02:00
66e10fda06 docs: update release notes 2024-08-05 16:00:00 +02:00
e8da2fa0bd lnrpc/gen_protos: remove manual_imports
With the updated falafel version, there is no longer a need to specify
manual imports.
2024-08-05 16:00:00 +02:00
58317e66d3 lnrpc/Dockerfile: update falafel version
Update the falafel version.
2024-08-05 15:59:50 +02:00
7e1e054511 Merge pull request #8959 from guggero/bump-kvdb
mod: bump kvdb to v1.4.10
2024-08-05 03:18:17 -06:00
11c7e20d0a Merge pull request #8953 from ProofOfKeags/refactor/lnwallet-channel-channel-constraints-partition
[MICRO]: multi: break ChannelConstraints into two sub-structures
2024-08-05 02:08:52 -06:00
6e63dcd6f9 Merge pull request #8952 from ProofOfKeags/refactor/lnwallet-channel-typed-list
[MICRO]: lnwallet: refactor channel to use new typed List
2024-08-05 02:07:50 -06:00
546c8ebb99 Merge pull request #8954 from ffranr/check-go-versions
Linter checks go versions in Dockerfile and YAML files
2024-08-05 02:01:00 -06:00
2cc668838c mod: bump kvdb to v1.4.10
To support the new comma-separated list of etcd hosts in db.etcd.host,
we need to bump the `kvdb` submodule version.
This also fixes a leader election bug in the etcd code.
2024-08-05 09:33:42 +02:00
e0b8892290 mod: remove local replace for healthcheck 2024-08-05 09:32:52 +02:00
05c786f775 mod: remove local replace for sqldb 2024-08-05 09:29:03 +02:00
c46b1a467a Merge pull request #8836 from hieblmi/payment-failure-reason-cancel
routing: add payment failure reason `FailureReasonCancel`
2024-08-01 16:52:06 -07:00
4a3c4e4ba7 Merge pull request #8497 from ziggie1984/shutdown-bugfix
routing: shutdown chanrouter correctly.
2024-08-01 16:48:50 -07:00
e3dd886580 Merge pull request #8962 from ProofOfKeags/refactor/quiescence-micro-spinoffs
[NANO]: Refactor/quiescence micro spinoffs
2024-08-01 13:57:29 -06:00
22e34702d8 funding: replace newly edited log values with lazier variants 2024-08-01 12:11:52 -07:00
e3a9d0acbe multi: break ChannelConstraints into two sub-structures
This commit breaks the ChannelConstraints structure into two
sub-structures that reflect the fundamental differences in how
these parameters are used. On its face it may not seem necessary,
however the distinction introduced here is relevant for how we
will be implementing the Dynamic Commitments proposal.
2024-08-01 12:00:32 -07:00
dc03637ae3 htlcswitch: rename for test parameters for accuracy 2024-08-01 11:56:50 -07:00
6e9eb1d0f7 Merge pull request #8938 from bhandras/etcd-leader-election-fixups
multi: check leader status with our health checker to correctly shut down LND if network partitions
healthcheck/v1.2.5 kvdb/v1.4.10
2024-08-01 11:26:29 -07:00
037161ee6c docs: add release notes for 0.18.3 2024-08-01 19:04:11 +02:00
f63bccb575 config: update sample-lnd.conf 2024-08-01 19:04:11 +02:00
91d9fb4764 lncfg: increase default leader session TTL to 90 seconds 2024-08-01 19:04:11 +02:00
8e49eb652d itest: add itest covering the leader healthcheck 2024-08-01 19:04:10 +02:00
8e0534f756 multi: add leader check to the healthcheck monitor
This commit extends our healtcheck with an optional leader check. This
is to ensure that given network partition or other cluster wide failure
we act as soon as possible to avoid a split-brain situation where a new
leader is elected but we still hold onto our etcd client.
2024-08-01 19:04:10 +02:00
7784d6abf6 build: pin healthcheck and kvdb modules temporarily
This is to ensure that the added functionality works correctly and
should be removed once these changes are merged and the packages are
tagged.
2024-08-01 19:04:10 +02:00
2c8d1c878e kvdb: make etcd calls timeout to ensure liveness
Previously our RPC calls to etcd would hang even in the case of properly
set dial timeouts and even if there was a network partition. To ensure
liveness we need to make sure that calls fail correctly in case of
system failure. To fix this we add a default timeout of 30 seconds to
each etcd RPC call.
2024-08-01 19:04:10 +02:00
0fd4c7d5f9 healthcheck: improve logging of observers 2024-08-01 19:04:09 +02:00
2a6e54016f Makefile: add lint check for Go version in Dockerfile and YAML
Implemented linter scripts to ensure consistency of the Go version
specified in Dockerfiles and YAML files. These scripts verify that the
Go version used across these files is uniform, enhancing maintainability
and reducing configuration errors.

This commit also introduces a `GO_VERSION` Makefile variable to control
the Go version used throughout the project.
2024-08-01 14:09:58 +01:00
808d958c9c docs: update release notes 2024-08-01 10:25:23 +02:00
0273eac4b2 itest: payment failure reason canceled 2024-08-01 10:25:22 +02:00
653226d29c itest: format and typo fixes 2024-08-01 10:24:08 +02:00
2e3c96f986 routing: new failure reason for cancelled payments 2024-08-01 10:24:08 +02:00
d18c4d61ce lnrpc: payment failure reason canceled 2024-08-01 10:24:07 +02:00
04dde98edc Merge pull request #8764 from ellemouton/rb-send-via-multi-path
[3/4] Route Blinding: send MPP over multiple blinded paths
2024-07-31 19:21:49 -07:00
f54c9ea8f7 htlcswitch: replace errors package implementation 2024-07-31 17:54:21 -07:00
b21521ff14 Merge pull request #8949 from ProofOfKeags/fn/req
[MICRO]: fn: Add new Req type to abstract the pattern of remote processing.
2024-07-31 17:31:35 -07:00
14ff12aa81 Merge pull request #8951 from ProofOfKeags/refactor/lnwallet-channel-channel-party
[MILLI]: Introduce and use ChannelParty
2024-07-31 17:30:32 -07:00
1f9cac5f80 htlcswitch: refactor dust handling to use ChannelParty 2024-07-31 14:50:27 -07:00
1d65f5bd12 peer: refactor createChanCloser to use ChannelParty 2024-07-31 14:50:27 -07:00
0996e4f163 multi: refactor lnwallet/channel.go to use ChannelParty in select places
We also include changes to contractcourt, htlcswitch and peer to stitch the
boundaries together.
2024-07-31 14:50:26 -07:00
33934449ac multi: refactor select methods within channeldb to use ChannelParty
Also in this commit is a small adjustment to the call-sites to get
the boundaries stitched back together.
2024-07-31 14:50:26 -07:00
3a15085014 input+lnwallet: refactor select methods in input to use ChannelParty 2024-07-31 14:50:26 -07:00
1a5b5c5f62 lntypes: Add a ChannelParty type.
This commit introduces a ChannelParty type to LND. It is useful for
consolidating all references to the duality between the local and
remote nodes. This is currently handled by having named struct rows
or named boolean parameters, named either "local" or "remote". This
change alleviates the programmer from having to decide which node
should be bound to `true` or `false`. In an upcoming commit we will
change callsites to use this.
2024-07-31 14:50:23 -07:00
04c37344ae lnwallet: refactor channel to use new typed List 2024-07-31 13:03:34 -07:00
2c6d229a69 fn: harden and refine the Req[I,O] API.
In this commit we opt to make the internal response channel fully
private and instead expose methods for doing resolution. This
prevents internal implementation details from leaking a little bit
better than the previous iteration.
2024-07-31 12:59:10 -07:00