@@ -98,15 +98,16 @@ service Router {
98
98
rpc TrackPayment (TrackPaymentRequest ) returns (stream PaymentStatus ) {
99
99
option deprecated = true ;
100
100
}
101
-
101
+
102
102
/**
103
103
HtlcInterceptor dispatches a bi-directional streaming RPC in which
104
104
Forwarded HTLC requests are sent to the client and the client responds with
105
105
a boolean that tells LND if this htlc should be intercepted.
106
106
In case of interception, the htlc can be either settled, cancelled or
107
107
resumed later by using the ResolveHoldForward endpoint.
108
108
*/
109
- rpc HtlcInterceptor (stream ForwardHtlcInterceptResponse ) returns (stream ForwardHtlcInterceptRequest );
109
+ rpc HtlcInterceptor (stream ForwardHtlcInterceptResponse )
110
+ returns (stream ForwardHtlcInterceptRequest );
110
111
}
111
112
112
113
message SendPaymentRequest {
@@ -589,7 +590,7 @@ message PaymentStatus {
589
590
repeated lnrpc.HTLCAttempt htlcs = 4 ;
590
591
}
591
592
592
- message CircuitKey {
593
+ message CircuitKey {
593
594
/// The id of the channel that the is part of this circuit.
594
595
uint64 chan_id = 1 ;
595
596
@@ -618,14 +619,14 @@ message ForwardHtlcInterceptRequest {
618
619
}
619
620
620
621
/**
621
- ForwardHtlcInterceptResponse enables the caller to resolve a previously hold forward.
622
- The caller can choose either to:
622
+ ForwardHtlcInterceptResponse enables the caller to resolve a previously hold
623
+ forward. The caller can choose either to:
623
624
- `Resume`: Execute the default behavior (usually forward).
624
625
- `Reject`: Fail the htlc backwards.
625
626
- `Settle`: Settle this htlc with a given preimage.
626
627
*/
627
628
message ForwardHtlcInterceptResponse {
628
- /**
629
+ /**
629
630
The key of this forwarded htlc. It defines the incoming channel id and
630
631
the index in this channel.
631
632
*/
@@ -638,9 +639,8 @@ message ForwardHtlcInterceptResponse {
638
639
bytes preimage = 3 ;
639
640
}
640
641
641
- enum ResolveHoldForwardAction {
642
+ enum ResolveHoldForwardAction {
642
643
SETTLE = 0 ;
643
644
FAIL = 1 ;
644
- RESUME = 2 ;
645
+ RESUME = 2 ;
645
646
}
646
-
0 commit comments