Elle Mouton
d47ff3af79
docs: add release note
2024-08-07 17:03:12 +02:00
Elle Mouton
697f514d09
blindedpath: log chosen blinded paths
...
In this commit, we log selected blinded paths.
2024-08-07 17:03:12 +02:00
Elle Mouton
95477390a4
log: register blindedpath pkg logger
2024-08-07 17:03:12 +02:00
Elle Mouton
48a9a8d20e
zpay32: add functional opt to error out on unknown feature bit
...
This commit adds two functional options to the zpay32.Decode function.
`WithKnownFeatureBits` allows the caller to overwrite the default set of
known feature bits used by the function.
`WithErrorOnUnknownFeatureBit` allows the caller to instruct the
function to error out if the invoice that is decoded contaijns unknown
feature bits. We then use this new error-out option from the
`rpcServer`'s `extractPaymentIntent` method.
2024-08-07 17:03:12 +02:00
Elle Mouton
e4619afc08
multi: add node omission list for blinded paths
2024-08-07 17:03:11 +02:00
Elle Mouton
b490deefdf
routing/blindedpath: dont error out unless all paths fail
...
In this commit, we adjust BuildBlindedPaymentPaths to only error out
completely if none of the paths it received from FindRoutes resulted in
a usable blinded path.
2024-08-07 17:02:56 +02:00
Elle Mouton
3de6c5415a
multi: let blinded path invoice options be set per addinvoice call
...
Extend the configurability of blinded paths in invoices by adding the
ability to change the global config options on a per-RPC basis.
2024-08-07 17:02:55 +02:00
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
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
Elle Mouton
6ab34665fb
routing: fix race in TestNewRouteRequest
...
The `err` variable was being shared by the parallel threads.
2024-08-05 16:07:03 +02:00
Elle Mouton
2d00859b75
mobile: correct output directory for generated files
2024-08-05 16:00:00 +02:00
Elle Mouton
66e10fda06
docs: update release notes
2024-08-05 16:00:00 +02:00
Elle Mouton
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
Elle Mouton
58317e66d3
lnrpc/Dockerfile: update falafel version
...
Update the falafel version.
2024-08-05 15:59:50 +02:00
Oliver Gugger
7e1e054511
Merge pull request #8959 from guggero/bump-kvdb
...
mod: bump kvdb to v1.4.10
2024-08-05 03:18:17 -06:00
Oliver Gugger
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
Oliver Gugger
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