Elle Mouton
ca91e17115
invoicesrpc: move blinded path config to AddInvoiceData
...
since `AddInvoiceData` is config _per invoice_ where as `AddInvoiceConfig`
is config for the invoice server itself and so pretty much should stay
the same for the lifetime of LND. This change sets us up for moving some
of the blinded path config options to be changeable per AddInvoice call
rather that having fixed config values in the config file.
2024-08-07 17:01:21 +02:00
Elle Mouton
e47160d257
routing: fix MC probability order for blinded paths
...
Fix the blinded path probability sorting function.
Also fix the test assertion function.
2024-08-07 17:01:21 +02:00
Oliver Gugger
d77617461d
Merge pull request #8955 from yyforyongyu/cr-8516-240729-sendcoins
...
Allow selecting coins in `sendcoins`
2024-08-07 08:42:25 -06:00
yyforyongyu
bc31a8b36f
routing: fix doc string
2024-08-07 22:19:23 +08:00
yyforyongyu
677f2c390a
lntest: re-define CleanupForceClose
...
To reflect the new sweeping behavior, also makes it easier to be used as
we need to method to quickly cleanup force closes without concerning the
details when we are not testing the force close behavior.
2024-08-07 22:19:23 +08:00
yyforyongyu
7aba5cbc0a
routing: fix linter complains
2024-08-07 22:19:23 +08:00
yyforyongyu
188aa9a4d4
routing+lnd: prepare closed channel SCIDs in server
...
The method `FetchClosedChannels` sometimes prematurely mark a pending
force closing channel as finalized, therefore we need to furthur check
`FetchPendingChannels` to make sure the channel is indeed finalized.
2024-08-07 22:19:23 +08:00
yyforyongyu
e8f292edf4
docs: update release notes re stuck payment fix
2024-08-07 22:19:22 +08:00
yyforyongyu
c2f7e6a66f
routing: fail stale HTLC attempts during startup
...
This commit adds a check during router's startup and fails the inflight
HTLCs if they are routing using channels unknown to us. The channels are
unknown because they are already closed, usually long time ago.
2024-08-07 22:19:21 +08:00
yyforyongyu
b998ce11f1
routing+htlcswitch: add new interface method HasAttemptResult
2024-08-07 22:18:51 +08:00
yyforyongyu
bbf58ab444
routing: add new method resumePayments
to handle payments during
...
startup
2024-08-07 22:18:49 +08:00
yyforyongyu
3b6e28d19b
channeldb+htlcswitch: make sure circuit is not nil in teardownCircuit
2024-08-07 22:17:59 +08:00
yyforyongyu
2fc79d8946
htlcswitch: handle forwarding settle and fail seperately
...
This commit adds two methods, `handlePacketFail` and
`handlePacketSettle` to handle the settle and fail packets differently.
2024-08-07 22:17:59 +08:00
yyforyongyu
6cb374aea6
htlcswitch: add new method handlePacketAdd
...
Simply moves the code into a new method so it's easier to follow the
method `handlePacketForward`.
2024-08-07 22:17:59 +08:00
yyforyongyu
d28d5d7a47
itest: add testSendToRouteFailHTLCTimeout
to check SendToRouteV2
2024-08-07 22:17:58 +08:00
yyforyongyu
21112cfdf8
htlcswitch: rename paymentID
to attemptID
for clarity
2024-08-07 22:17:58 +08:00
yyforyongyu
941716d60e
lntest+itest: add new test testPaymentHTLCTimeout
...
This commit adds a new test case to validate that when an HTLC has timed
out, the corresponding payment is marked as failed.
2024-08-07 22:17:58 +08:00
yyforyongyu
0928ba0149
routing: fix and enhance logging
2024-08-07 22:17:58 +08:00
Oliver Gugger
b63e5decad
Merge pull request #8886 from bitromortac/buildroute-inbound-fees
...
routing: inbound fees support for BuildRoute
2024-08-07 08:11:17 -06:00
yyforyongyu
dcd8269050
docs: update release notes
2024-08-07 20:42:58 +08:00
yyforyongyu
e542351149
itest: add testSendSelectedCoins
to check selected utxos
2024-08-07 20:42:58 +08:00
yyforyongyu
0041426e7e
itest+lntest: return the error from SendCoinsAssertErr
...
Also rename the send all coins test for clarity.
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
018484628a
lncli: Add outpoints
flag to sendcoins command
...
Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
900d7fdd17
cmd: Export and move utxosToOutpoint
.
...
Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
b50a1e6360
lnd: modify sendcoin rpc impl for select utxos
...
Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
13bad2c20c
sweep: Add selectUtxos to CraftSweepAllTx args
2024-08-07 20:42:28 +08:00
Ononiwu Maureen
99339f706f
multi: expand SendOutputs
and CreateSimpleTx
to take utxos
...
This commit updates the interface methods from
`lnwallet.WalletController` to take optional input set which can be used
to create the tx.
2024-08-07 20:42:27 +08:00
Ononiwu Maureen
468ca87499
lnrpc: Add Outpoint
field in SendCoinsRequest
...
Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
2024-08-07 20:42:27 +08:00
bitromortac
f622b43b5d
docs: add to release notes
2024-08-07 14:25:27 +02:00
bitromortac
b0e1a722c6
routerrpc: add check for empty hops
2024-08-07 14:24:59 +02:00
bitromortac
452db01ad7
lnrpc+routing: convert amt pointer to fn.Option
2024-08-07 14:24:56 +02:00
bitromortac
8b32e3e785
routing: add inbound fee support for BuildRoute
2024-08-07 14:23:54 +02:00
bitromortac
36cd03669b
routing: add outgoingFromIncoming amount calc
...
Adds a utility function to be able to compute the outgoing routing
amount from the incoming amount by taking inbound and outbound fees into
account. The discussion was contributed by user feelancer21, see
f6f05fa930
.
2024-08-07 12:40:42 +02:00
bitromortac
2c79bf9635
routing: refactor backward and forward pass
2024-08-07 12:40:42 +02:00
Oliver Gugger
75ec6da177
Merge pull request #8979 from ProofOfKeags/refactor/useless-args
...
[NANO]: Remove useless appendages from lnwallet/channel.go
2024-08-07 01:37:56 -06:00
Oliver Gugger
9271b5ebbe
Merge pull request #8984 from guggero/make-rpc
...
lnrpc: avoid needing to download Golang
2024-08-07 01:36:00 -06:00
Oliver Gugger
94b9b50a42
mod: update comment what to change on Go version bump
2024-08-07 09:16:37 +02:00
ProofOfKeags
747abb4a0e
Merge pull request #8980 from ProofOfKeags/refactor/modified-htlcs-fn-set
...
[NANO]: lnwallet: update updateLog.modifiedHtlcs to use fn.Set
2024-08-06 11:56:57 -06:00
Keagan McClelland
c3c4e79593
lnwallet: update updateLog.modifiedHtlcs to use fn.Set
2024-08-06 10:05:20 -07:00
Oliver Gugger
63af63dfa8
lnrpc: avoid needing to download Golang
...
Because the Go version used to run the `go list` commands is below the
minimum version specified in the main go.mod file, every time the `make
rpc` command is executed, the Golang runtime is downloaded twice, which
looks like this and takes a couple of seconds at least:
go: downloading go1.21.4 (linux/amd64)
go: downloading go1.21.4 (linux/amd64)
We fix this by using the correct minimum version.
2024-08-06 18:38:10 +02:00
Yong
ab96de3f07
Merge pull request #8967 from ProofOfKeags/feature/stfu-wire
...
[MICRO]: add wire messages for quiescence
2024-08-06 13:52:12 +08:00
Keagan McClelland
935e7f1bee
lnwallet: remove unused parameters in LightningChannel methods
2024-08-05 18:14:11 -07:00
Keagan McClelland
14e371948b
lnwallet: remove unnecessary duplicate definition
2024-08-05 18:14:11 -07:00
Keagan McClelland
2ddc3db5f8
peer: add message summary for Stfu
2024-08-05 17:23:19 -07:00
Keagan McClelland
b172227cb3
lnwire: add Stfu to LinkUpdater interface
2024-08-05 17:23:19 -07:00
Keagan McClelland
0176fca826
lnwire: add wire type for stfu
2024-08-05 17:22:56 -07:00
Olaoluwa Osuntokun
c262b1b5a5
Merge pull request #8968 from ProofOfKeags/opening-party
...
[MICRO]: channeldb+lnwallet: add OpeningParty API
2024-08-05 16:42:22 -07:00
Keagan McClelland
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
Elle
4e5728f58a
Merge pull request #8974 from ellemouton/falafelUpdate
...
lnrpc: update falafel version
2024-08-05 19:20:06 +02:00
Elle
f341d4c65f
Merge pull request #8977 from ellemouton/fixTestRace
...
routing: fix race in TestNewRouteRequest
2024-08-05 18:36:56 +02:00