ziggie
df9bac2ecf
multi: move PaymentCreationInfo to payment pkg
2025-08-14 19:53:18 +02:00
ziggie
d138e23919
multi: move FailureReason to payment package
2025-08-14 19:53:18 +02:00
ziggie
03af9858d2
multi: move payment related code into own package
...
This commit moves most of the code into its own package. It is
the smallest code move possible without moving import cycles and
keeping the changes to the code base as small as possible during
refactor.
2025-08-14 19:53:15 +02:00
Yong
c6a9116e3a
Merge pull request #9844 from ziggie1984/refactor-payments-code-03
...
Refactor Payment PR 3
2025-08-13 06:05:01 -04:00
ziggie
18afd4442d
multi: introduce new paymentsDB package
...
We introduce a new package paymentsDB and start by moving the
payment specifc errors from the channeldb package to the
paymentsDB package. We also fix linter issues which showed up
due to changing this code part.
2025-08-11 16:44:14 +02:00
ziggie
87844cd5b4
multi: bump Golang version to v1.23.12
2025-08-07 16:53:45 +02:00
Boris Nagaev
c22768283c
walletrpc: allow conf_target=1 in FundPsbt
...
Modified 'fund_psbt' itest to test this scenario.
2025-08-01 17:16:02 -03:00
Boris Nagaev
b0e9a4b79f
walletrpc: allow conf_target=1 in EstimateFee
...
See https://github.com/lightningnetwork/lnd/pull/9611#issuecomment-3082770038
2025-08-01 17:15:09 -03:00
MPins
0146e374fd
lnrpc: add the deletecanceledinvoice rpc call
2025-07-25 21:09:18 -03:00
Oliver Gugger
6b1c85265f
lnrpc+rpcserver: add QoL flag for permission check
...
To make it even more obvious that by default the permissions to check
aren't taken from the full method provided, we add a new flag that does
that on request.
2025-07-21 13:07:43 +02:00
Oliver Gugger
66340500e9
lnrpc+rpcserver: improve docs for CheckMacaroonPermissions
...
Fixes #10026 .
2025-07-21 13:06:25 +02:00
Boris Nagaev
643fbb8af6
multi: update Go to 1.23.10
2025-07-16 01:19:58 -03:00
Abdullahi Yunus
7faf20bd56
lnrpc: deprecate OutgoingChanId
...
In this commit we deprecate the OutgoingChanId field in the
QueryRoutes in favor of OutgoingChanIds.
2025-07-15 18:42:56 +01:00
Abdullahi Yunus
e3838c5dd2
routerrpc: use multiple chanids in route request
...
In this commit we allow for setting more than one outgoing chan ids
to the restrictions of in router's query route request.
2025-07-15 18:42:23 +01:00
Abdullahi Yunus
51882e130f
lnrpc: add outchan ids to proto
2025-07-15 18:34:24 +01:00
Oliver Gugger
f5b27bf057
lnrpc+rpcserver: add missing channel update event type
...
Fixes the error "unexpected channel event update" in
SubscribeChannelEvents.
2025-07-15 17:12:17 +02:00
yyforyongyu
43ea309f2c
lnrpc: update description for RoutingPolicy.CustomRecords
2025-07-01 19:59:51 +08:00
Elle
e8213dbc44
Merge pull request #9752 from erickcestari/reject-payment-without-invoice
...
routerrpc: reject payment to invoice that don't have payment secret or blinded paths
2025-06-30 13:11:36 +02:00
Oliver Gugger
e75c82e25a
Merge pull request #9988 from starius/remove-used-proto-message
...
lnrpc: remove unused type ConfirmationUpdate
2025-06-26 17:15:18 +02:00
ziggie
43edfeb101
routerrpc: rename var and add more comments
2025-06-25 10:37:06 +02:00
ziggie
fd7f6caa4a
routerrpc: add log line for probing the invoice request
2025-06-25 10:37:05 +02:00
Boris Nagaev
5dcafeca19
lnrpc: remove unused type ConfirmationUpdate
...
The type is not used since 237f2b6d4b
2025-06-24 15:28:33 -03:00
Erick Cestari
118e0a99c1
routerrpc: reject invoices missing secret/path
...
Ensure that a payment is only sent if the invoice includes either a
payment address (payment secret) or at least one blinded path.
2025-06-20 09:23:09 -03:00
Erick Cestari
c01a66783f
routerrpc: inject clock for testable expiry validation
...
Refactors payment request expiry validation to use an injected clock
dependency instead of calling time.Now() directly.
2025-06-20 09:23:02 -03:00
Boris Nagaev
7a70dcb36e
lnrpc: add auth_proof to graph APIs
...
Added flag include_auth_proof to DescribeGraph, GetNodeInfo, GetChanInfo
and the corresponding lncli commands. With the flag, these APIs add AuthProof
(signatures from the channel announcement) to the returned ChannelEdge.
This is useful to extract this data from the DB.
2025-06-19 18:19:33 -03:00
Elle Mouton
81c063eb96
graph/db: thread context through to UpdateEdgePolicy
2025-06-19 14:49:31 +02:00
Elle Mouton
3fdb9b84f4
graph/db: thread context to AddChannelEdge
2025-06-19 14:47:41 +02:00
Elle Mouton
65049ddd02
graph/db: thread context through to SetSourceNode
2025-06-19 14:47:40 +02:00
Elle Mouton
d1cfb47428
graph/db: thread context to AddLightningNode
2025-06-17 19:20:27 +02:00
Shivam Chawla
bfe1edf4ec
lnrpc: add filters to forwardhistoryrequest
...
This commit adds incoming and outgoing channel ids filter to forwarding history request to filter events received/forwarded from/to a particular channel
2025-06-11 09:10:13 +05:30
Abdullahi Yunus
a0634e4ade
lnd+lnrpc: update fwdinghistory message
...
In this commit we update the returned message for fwdinghistory
to include the htlcindex for all forwarded htlcs.
2025-06-06 12:21:46 +01:00
Oliver Gugger
fc906f2a65
Merge pull request #9127 from MPins/issue-8993
...
Add the option on path creator to specify the incoming channel on blinded path
2025-06-05 08:47:05 +02:00
Elle Mouton
95d34be0d3
autopilot: revert passing ctx to Start methods
2025-05-22 14:14:40 +02:00
Elle Mouton
3f218dfbbe
autopilot: update AttachmentHeuristics with context
...
Continue threading context through the autopilot system and remove the
remaining context.TODOs.
2025-05-22 14:14:38 +02:00
Elle Mouton
13fcb08794
autopilot: start threading contexts through
...
The `GraphSource` interface in the `autopilot` package is directly
implemented by the `graphdb.KVStore` and so we will eventually thread
contexts through to this interface. So in this commit, we start updating
the autopilot system to thread contexts through in preparation for
passing the context through to any calls made to the GraphSource.
Two context.TODOs are added here which will be addressed in follow up
commits.
2025-05-22 14:14:38 +02:00
MPins
795b46a6fd
lnrpc: add incoming chan list to BlindedPathConfig
...
Add an option to the addinvoice rpc which allows to specify
the blinded path via a list of chained channels.
2025-05-13 17:02:43 -03:00
Olaoluwa Osuntokun
1c76c6198c
build: bump Go version to v1.23.9
2025-05-06 15:50:16 -07:00
yyforyongyu
94463c6844
walletrpc: add new field MaturityHeight
2025-04-28 21:44:10 +08:00
Elle Mouton
e9fc852390
lnrpc+rpcperms: add ctx metadata pairs to RPCMiddlewareRequest
...
The MW interceptor works via a stream & sends requests to the
interceptor via this stream. Sometimes, the interceptor might want to
work with grpc metadata pairs that were sent via the context of the
original request though and so in this commit, we ensure that for each
request sent via the stream to the interceptr, the grpc metadata is sent
along explicitly as well. This is done by adding a new `metadata_pairs`
field to the RPCMiddlewareRequest proto message.
2025-04-22 15:03:17 +02:00
Andras Banki-Horvath
8dab512981
walletrpc: make use of custom lock ID and lock duration in FundPsbt
2025-04-17 15:25:12 +02:00
Andras Banki-Horvath
a62e410ebf
walletrpc: add custom lock ID and lock duration to FundPsbtRequest
2025-04-17 15:25:11 +02:00
Nishant Bansal
cfab97c8be
routerrpc: add validation to MPP params
...
Adds validation to ensure that MPP parameters are compatible
with the payment amount before attempting the payment. This
prevents payments from entering a path finding loop that
would eventually timeout.
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com >
2025-04-10 18:17:34 +02:00
Boris Nagaev
acd296e760
chainrpc: fix description of several methods
...
They pointed to a non-existing type ChainNotifierService. The actual name
of the interface is ChainNotifierServer.
2025-04-08 17:43:23 -03:00
Andras Banki-Horvath
e8825f2098
build: add temporary kvdb mod replace
2025-04-01 12:40:32 +02:00
Oliver Gugger
bab5cabd90
lnrpc+rpcserver: add custom channel data for closed channels
...
This commit adds the custom channel data for closed channels which
represents the initial funding state as well as the final balances at
closing time.
2025-03-27 12:38:47 -05:00
Oliver Gugger
cf35be847c
Merge pull request #9626 from ziggie1984/payment-lifecycle-small-fix
...
payment lifecycle small fix
2025-03-25 08:15:48 -06:00
ziggie
013e408abe
multi: make validation for keysend stricter
2025-03-25 04:42:03 -05:00
jike
e72caf7b45
multi: remove x/exp/maps dependency
2025-03-25 10:34:19 +08:00
Olaoluwa Osuntokun
67d2eac437
Merge pull request #9620 from guggero/testnet4
...
chain: add testnet4 support
2025-03-24 15:48:26 -07:00
Oliver Gugger
0aea482b51
multi: add testnet4 support
2025-03-24 11:53:23 -05:00