Joost Jager
511fb00777
htlcswitch: add final htlc event to notifier
2022-10-27 16:42:36 +02:00
Joost Jager
b85cda2a1d
routerrpc: add htlc notifier subscribed event
2022-10-27 16:42:35 +02:00
Joost Jager
a0a50fa844
htlcswitch: auto-fail held htlcs
...
Make the interceptable switch aware of htlc expiry and fail back htlcs in-time
to prevent the counterparty from force-closing the channel.
2022-10-18 18:06:49 +02:00
Jesse de Wit
275f085e6d
routerrpc: add TrackPayments
...
Add method to track all payments rather than tracking a payment by payment hash.
2022-09-08 10:48:34 +02:00
yyforyongyu
46ca28fe22
routerrpc: add new field skip_temp_err
in SendToRouteRequest
2022-07-15 19:03:12 +08:00
Joost Jager
9195f29e61
routing+channeldb: send payment metadata from invoice
2022-04-13 22:55:40 +02:00
Joost Jager
ba5abdc090
routing: add time_pref parameter to queryroutes and sendpayment
2022-04-13 20:26:46 +02:00
Joost Jager
e2b56f212f
htlcswitch: accept failure reason for intercepted htlcs
2022-02-01 17:18:59 +01:00
Andras Banki-Horvath
23c157a07b
routing: add option to force import MC pair history
...
This commit adds the `force` flag to the `XImportMissionControl` RPC
which allows skipping rules around the pair import except for what is
mandatory to make values meaningful. This can be useful for when clients
would like to forcibly override MC state in order to manipulate routing
results.
2022-01-19 17:18:05 +01:00
Oliver Gugger
dd749fe580
lnrpc: update grpc-gateway library to v2
2021-07-27 13:09:59 +02:00
Olaoluwa Osuntokun
db3819fcef
Merge pull request #5236 from offerm/preimage-to-settleevent
...
feature: expose preimage in forward+settle event
2021-07-09 14:35:11 -07:00
offerm
2c4dbfa19f
feature: expose preimage in forward+settle event
...
Until now, clients of SubscribeHTLCEvents didn't have access to the settled preimage. The API allows to intercept forward event and to be updated on forward events however the forward+settle event does not include the payment preimage. This pr changes allows it.
2021-06-15 22:01:24 +03:00
Oliver Gugger
3eb7539de1
lnrpc: fix typos in REST annotations for routerrpc
...
Fixes #5307 .
Corrects some typos in the REST annotations for the routerrpc subserver.
Unfortunately these mistakes aren't caught by the current version of the
grpc-gateway library. But we intend to update to v2 soon which will
output alerts as mentioned in #5307 .
2021-05-19 09:48:33 +02:00
Johan T. Halseth
0b9137cdac
lnrpc: add AMP feature bits
2021-04-27 09:47:23 +02:00
Johan T. Halseth
6104d12cf8
routerrpc: add amp bool to SendPayment
...
For now this is how you indicate you want to perform an AMP payment to
the destination.
2021-04-27 09:47:23 +02:00
Conner Fromknecht
00581efec6
lnrpc: add AMPRecord to Hop
2021-04-07 12:09:43 -07:00
Olaoluwa Osuntokun
901c192e9f
lnrpc/routerrpc: use x prefix as REST sub-path for ImportMissionControl
...
A small change to better indicate that this is a different class of RPCs
on the REST interface.
2021-03-23 16:41:00 -07:00
carla
d0e7164c07
routerrpc: add mission control import
2021-03-18 10:51:45 +02:00
Olaoluwa Osuntokun
65b0bbcd53
Merge pull request #5033 from robot-dreams/set-channel-status
...
Add lncli command / RPC for manually setting channel state
2021-03-09 18:12:08 -08:00
Conner Fromknecht
b121d1da4e
Merge pull request #5078 from carlaKC/fix-comment
...
lnrpc: correct comment on half life seconds
2021-03-05 12:29:59 -08:00
carla
cd1a8b2d3a
lnrpc: correct comment on half life seconds
...
Field is not a unix timestamp, it's just number of seconds.
2021-03-05 16:26:02 +02:00
Conner Fromknecht
71db3a83bc
lnrpc: expose INVALID_ONION_PAYLOAD via RPC
2021-03-04 15:27:16 -08:00
Elliott Jin
4e4f4bc194
routerrpc: add UpdateChanStatus RPC to Router service
...
Update router.proto and rest-annotations.yaml, recompile protos,
add a stub implementation to routerrpc.Server.
2021-02-24 07:13:28 -08:00
Olaoluwa Osuntokun
c70e53c791
lnrpc/routerrpc: add new max_shard_size_msat field to SendPaymentRequest
2021-02-15 19:31:46 -08:00
Johan T. Halseth
0227aaab1f
lnrpc: format protos
2021-02-11 15:06:12 +01:00
Olaoluwa Osuntokun
7b0ea3c029
Merge pull request #4909 from carlaKC/mc-paramsapi
...
routing: allow runtime updates to mission control config
2021-02-10 18:51:53 -08:00
Joost Jager
0ef0264d28
lnrpc: add htlc attempt id
2021-01-25 17:21:58 +01:00
carla
64dad77e2e
multi: add get and set mission control to routerrpc
2021-01-19 10:57:15 +02:00
Conner Fromknecht
6d437117b4
lnrpc: add missing features to FeatureBit enum
...
- WumboChannels
- Anchors
- AnchorsZeroFeeHtlc
2021-01-15 15:23:53 -08:00
Olaoluwa Osuntokun
b85c92d8d5
lnrpc/routerrpc: add payment addr to SendPaymentRequest
...
Fixes #4692
2021-01-05 19:04:57 -08:00
Olaoluwa Osuntokun
d996607470
routing+lnrpc: extend BuildRoute to accept raw payAddr
...
In this commit, we extend the `BuildRoute` method and RPC on the router
sub-server to accept a raw payment address which will be included as
part of an MPP payload for the finla hop. This change actually also
allows users to craft their own MPP paths using BuildRoute+SendToRoute.
Our primary goal however, was to fix some broken itests since we now
require the payAddr to be present for ALL payments other than key send
payments.
2020-11-25 16:32:02 -08:00
Juan Pablo Civile
033c5b7a3f
htlcswitch,rpc: expose onion blob for intercepts
2020-10-31 14:09:52 -03:00
Joost Jager
2903505164
htlcswitch: expose custom records on intercepted packet
2020-06-27 11:00:46 +02:00
Joost Jager
363142de33
htlcswitch: expose additional fields for intercepted packets
2020-06-27 11:00:44 +02:00
Joost Jager
607927634d
routerrpc: remove redundant htlc prefix from proto field
...
The message name already sets the context to an htlc.
2020-06-27 10:59:06 +02:00
Joost Jager
f6f8e3221b
routerrpc: clarify proto fields to be outgoing
2020-06-27 10:59:04 +02:00
Roei Erez
7b56268f70
rpc: implement RPC htlc interceptor.
...
In this commit we add the ability to intercept forwarded htlc packets
straight from the RPC layer. The RPC layer handles a bidrectional stream
that comminucates to the client the intercepted packets and handles its
response by coordinating with the interceptable switch.
2020-06-18 15:20:07 +03:00
Oliver Gugger
19e3dc6378
routerrpc: format proto
2020-06-04 08:50:44 +02:00
Oliver Gugger
fe16be5bb8
lnrpc: extract or add REST annotations to yaml
2020-06-04 08:50:00 +02:00
Joost Jager
8e7c0757ec
routerrpc: expose preimage on the htlc level
2020-05-12 19:56:49 +02:00
Oliver Gugger
272598a706
lnrpc: generate gateway and swagger for all RPCs
2020-05-08 14:33:59 +02:00