2018-10-23 07:43:47 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: routerrpc/router.proto
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
package routerrpc
|
2018-10-23 07:43:47 +03:00
|
|
|
|
|
|
|
import (
|
2019-05-15 16:07:30 +03:00
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
|
2018-10-23 07:43:47 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-05-15 16:07:30 +03:00
|
|
|
math "math"
|
2018-10-23 07:43:47 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2019-05-15 16:07:30 +03:00
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
2018-10-23 07:43:47 +03:00
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
type PaymentState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
//*
|
|
|
|
//Payment is still in flight.
|
|
|
|
PaymentState_IN_FLIGHT PaymentState = 0
|
|
|
|
//*
|
|
|
|
//Payment completed successfully.
|
|
|
|
PaymentState_SUCCEEDED PaymentState = 1
|
|
|
|
//*
|
|
|
|
//There are more routes to try, but the payment timeout was exceeded.
|
|
|
|
PaymentState_FAILED_TIMEOUT PaymentState = 2
|
|
|
|
//*
|
|
|
|
//All possible routes were tried and failed permanently. Or were no
|
|
|
|
//routes to the destination at all.
|
|
|
|
PaymentState_FAILED_NO_ROUTE PaymentState = 3
|
2019-06-04 12:22:23 +03:00
|
|
|
//*
|
|
|
|
//A non-recoverable error has occured.
|
|
|
|
PaymentState_FAILED_ERROR PaymentState = 4
|
|
|
|
//*
|
|
|
|
//Payment details incorrect (unknown hash, invalid amt or
|
|
|
|
//invalid final cltv delta)
|
|
|
|
PaymentState_FAILED_INCORRECT_PAYMENT_DETAILS PaymentState = 5
|
2019-11-21 13:59:17 +03:00
|
|
|
//*
|
|
|
|
//Insufficient local balance.
|
|
|
|
PaymentState_FAILED_INSUFFICIENT_BALANCE PaymentState = 6
|
2019-03-22 12:21:25 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var PaymentState_name = map[int32]string{
|
|
|
|
0: "IN_FLIGHT",
|
|
|
|
1: "SUCCEEDED",
|
|
|
|
2: "FAILED_TIMEOUT",
|
|
|
|
3: "FAILED_NO_ROUTE",
|
2019-06-04 12:22:23 +03:00
|
|
|
4: "FAILED_ERROR",
|
|
|
|
5: "FAILED_INCORRECT_PAYMENT_DETAILS",
|
2019-11-21 13:59:17 +03:00
|
|
|
6: "FAILED_INSUFFICIENT_BALANCE",
|
2019-03-22 12:21:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var PaymentState_value = map[string]int32{
|
2019-06-04 12:22:23 +03:00
|
|
|
"IN_FLIGHT": 0,
|
|
|
|
"SUCCEEDED": 1,
|
|
|
|
"FAILED_TIMEOUT": 2,
|
|
|
|
"FAILED_NO_ROUTE": 3,
|
|
|
|
"FAILED_ERROR": 4,
|
|
|
|
"FAILED_INCORRECT_PAYMENT_DETAILS": 5,
|
2019-11-21 13:59:17 +03:00
|
|
|
"FAILED_INSUFFICIENT_BALANCE": 6,
|
2019-03-22 12:21:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x PaymentState) String() string {
|
|
|
|
return proto.EnumName(PaymentState_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (PaymentState) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{0}
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
type Failure_FailureCode int32
|
|
|
|
|
|
|
|
const (
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The numbers assigned in this enumeration match the failure codes as
|
|
|
|
//defined in BOLT #4. Because protobuf 3 requires enums to start with 0,
|
|
|
|
//a RESERVED value is added.
|
2019-06-12 12:35:54 +03:00
|
|
|
Failure_RESERVED Failure_FailureCode = 0
|
|
|
|
Failure_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS Failure_FailureCode = 1
|
|
|
|
Failure_INCORRECT_PAYMENT_AMOUNT Failure_FailureCode = 2
|
|
|
|
Failure_FINAL_INCORRECT_CLTV_EXPIRY Failure_FailureCode = 3
|
|
|
|
Failure_FINAL_INCORRECT_HTLC_AMOUNT Failure_FailureCode = 4
|
|
|
|
Failure_FINAL_EXPIRY_TOO_SOON Failure_FailureCode = 5
|
|
|
|
Failure_INVALID_REALM Failure_FailureCode = 6
|
|
|
|
Failure_EXPIRY_TOO_SOON Failure_FailureCode = 7
|
|
|
|
Failure_INVALID_ONION_VERSION Failure_FailureCode = 8
|
|
|
|
Failure_INVALID_ONION_HMAC Failure_FailureCode = 9
|
|
|
|
Failure_INVALID_ONION_KEY Failure_FailureCode = 10
|
|
|
|
Failure_AMOUNT_BELOW_MINIMUM Failure_FailureCode = 11
|
|
|
|
Failure_FEE_INSUFFICIENT Failure_FailureCode = 12
|
|
|
|
Failure_INCORRECT_CLTV_EXPIRY Failure_FailureCode = 13
|
|
|
|
Failure_CHANNEL_DISABLED Failure_FailureCode = 14
|
|
|
|
Failure_TEMPORARY_CHANNEL_FAILURE Failure_FailureCode = 15
|
|
|
|
Failure_REQUIRED_NODE_FEATURE_MISSING Failure_FailureCode = 16
|
|
|
|
Failure_REQUIRED_CHANNEL_FEATURE_MISSING Failure_FailureCode = 17
|
|
|
|
Failure_UNKNOWN_NEXT_PEER Failure_FailureCode = 18
|
|
|
|
Failure_TEMPORARY_NODE_FAILURE Failure_FailureCode = 19
|
|
|
|
Failure_PERMANENT_NODE_FAILURE Failure_FailureCode = 20
|
|
|
|
Failure_PERMANENT_CHANNEL_FAILURE Failure_FailureCode = 21
|
2019-10-10 21:25:34 +03:00
|
|
|
Failure_EXPIRY_TOO_FAR Failure_FailureCode = 22
|
2019-12-20 13:25:08 +03:00
|
|
|
Failure_MPP_TIMEOUT Failure_FailureCode = 23
|
2019-06-19 12:12:10 +03:00
|
|
|
//*
|
2019-06-19 16:09:23 +03:00
|
|
|
//The error source is known, but the failure itself couldn't be decoded.
|
|
|
|
Failure_UNKNOWN_FAILURE Failure_FailureCode = 998
|
|
|
|
//*
|
2019-06-19 12:12:10 +03:00
|
|
|
//An unreadable failure result is returned if the received failure message
|
|
|
|
//cannot be decrypted. In that case the error source is unknown.
|
|
|
|
Failure_UNREADABLE_FAILURE Failure_FailureCode = 999
|
2019-03-14 18:31:39 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
var Failure_FailureCode_name = map[int32]string{
|
2019-06-19 12:12:10 +03:00
|
|
|
0: "RESERVED",
|
2019-06-12 12:35:54 +03:00
|
|
|
1: "INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",
|
2019-06-19 12:12:10 +03:00
|
|
|
2: "INCORRECT_PAYMENT_AMOUNT",
|
|
|
|
3: "FINAL_INCORRECT_CLTV_EXPIRY",
|
|
|
|
4: "FINAL_INCORRECT_HTLC_AMOUNT",
|
|
|
|
5: "FINAL_EXPIRY_TOO_SOON",
|
|
|
|
6: "INVALID_REALM",
|
|
|
|
7: "EXPIRY_TOO_SOON",
|
|
|
|
8: "INVALID_ONION_VERSION",
|
|
|
|
9: "INVALID_ONION_HMAC",
|
|
|
|
10: "INVALID_ONION_KEY",
|
|
|
|
11: "AMOUNT_BELOW_MINIMUM",
|
|
|
|
12: "FEE_INSUFFICIENT",
|
|
|
|
13: "INCORRECT_CLTV_EXPIRY",
|
|
|
|
14: "CHANNEL_DISABLED",
|
|
|
|
15: "TEMPORARY_CHANNEL_FAILURE",
|
|
|
|
16: "REQUIRED_NODE_FEATURE_MISSING",
|
|
|
|
17: "REQUIRED_CHANNEL_FEATURE_MISSING",
|
|
|
|
18: "UNKNOWN_NEXT_PEER",
|
|
|
|
19: "TEMPORARY_NODE_FAILURE",
|
|
|
|
20: "PERMANENT_NODE_FAILURE",
|
|
|
|
21: "PERMANENT_CHANNEL_FAILURE",
|
2019-10-10 21:25:34 +03:00
|
|
|
22: "EXPIRY_TOO_FAR",
|
2019-12-20 13:25:08 +03:00
|
|
|
23: "MPP_TIMEOUT",
|
2019-06-19 16:09:23 +03:00
|
|
|
998: "UNKNOWN_FAILURE",
|
2019-06-19 12:12:10 +03:00
|
|
|
999: "UNREADABLE_FAILURE",
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
var Failure_FailureCode_value = map[string]int32{
|
2019-06-12 12:35:54 +03:00
|
|
|
"RESERVED": 0,
|
|
|
|
"INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS": 1,
|
|
|
|
"INCORRECT_PAYMENT_AMOUNT": 2,
|
|
|
|
"FINAL_INCORRECT_CLTV_EXPIRY": 3,
|
|
|
|
"FINAL_INCORRECT_HTLC_AMOUNT": 4,
|
|
|
|
"FINAL_EXPIRY_TOO_SOON": 5,
|
|
|
|
"INVALID_REALM": 6,
|
|
|
|
"EXPIRY_TOO_SOON": 7,
|
|
|
|
"INVALID_ONION_VERSION": 8,
|
|
|
|
"INVALID_ONION_HMAC": 9,
|
|
|
|
"INVALID_ONION_KEY": 10,
|
|
|
|
"AMOUNT_BELOW_MINIMUM": 11,
|
|
|
|
"FEE_INSUFFICIENT": 12,
|
|
|
|
"INCORRECT_CLTV_EXPIRY": 13,
|
|
|
|
"CHANNEL_DISABLED": 14,
|
|
|
|
"TEMPORARY_CHANNEL_FAILURE": 15,
|
|
|
|
"REQUIRED_NODE_FEATURE_MISSING": 16,
|
|
|
|
"REQUIRED_CHANNEL_FEATURE_MISSING": 17,
|
|
|
|
"UNKNOWN_NEXT_PEER": 18,
|
|
|
|
"TEMPORARY_NODE_FAILURE": 19,
|
|
|
|
"PERMANENT_NODE_FAILURE": 20,
|
|
|
|
"PERMANENT_CHANNEL_FAILURE": 21,
|
2019-10-10 21:25:34 +03:00
|
|
|
"EXPIRY_TOO_FAR": 22,
|
2019-12-20 13:25:08 +03:00
|
|
|
"MPP_TIMEOUT": 23,
|
2019-06-12 12:35:54 +03:00
|
|
|
"UNKNOWN_FAILURE": 998,
|
|
|
|
"UNREADABLE_FAILURE": 999,
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Failure_FailureCode) String() string {
|
|
|
|
return proto.EnumName(Failure_FailureCode_name, int32(x))
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (Failure_FailureCode) EnumDescriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{7, 0}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
type SendPaymentRequest struct {
|
2019-04-18 10:34:28 +03:00
|
|
|
/// The identity pubkey of the payment recipient
|
|
|
|
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
2019-11-11 18:44:08 +03:00
|
|
|
//*
|
|
|
|
//Number of satoshis to send.
|
|
|
|
//
|
|
|
|
//The fields amt and amt_msat are mutually exclusive.
|
2019-04-18 10:34:28 +03:00
|
|
|
Amt int64 `protobuf:"varint,2,opt,name=amt,proto3" json:"amt,omitempty"`
|
2019-11-11 18:44:08 +03:00
|
|
|
//*
|
|
|
|
//Number of millisatoshis to send.
|
|
|
|
//
|
|
|
|
//The fields amt and amt_msat are mutually exclusive.
|
|
|
|
AmtMsat int64 `protobuf:"varint,12,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
|
2019-04-18 10:34:28 +03:00
|
|
|
/// The hash to use within the payment's HTLC
|
|
|
|
PaymentHash []byte `protobuf:"bytes,3,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
2019-04-18 10:34:28 +03:00
|
|
|
//The CLTV delta from the current height that should be used to set the
|
|
|
|
//timelock for the final hop.
|
|
|
|
FinalCltvDelta int32 `protobuf:"varint,4,opt,name=final_cltv_delta,json=finalCltvDelta,proto3" json:"final_cltv_delta,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
2019-04-18 10:34:28 +03:00
|
|
|
//A bare-bones invoice for a payment within the Lightning Network. With the
|
|
|
|
//details of the invoice, the sender has all the data necessary to send a
|
|
|
|
//payment to the recipient. The amount in the payment request may be zero. In
|
|
|
|
//that case it is required to set the amt field as well. If no payment request
|
|
|
|
//is specified, the following fields are required: dest, amt and payment_hash.
|
|
|
|
PaymentRequest string `protobuf:"bytes,5,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//An upper limit on the amount of time we should spend when attempting to
|
|
|
|
//fulfill the payment. This is expressed in seconds. If we cannot make a
|
|
|
|
//successful payment within this time frame, an error will be returned.
|
2019-04-18 10:34:28 +03:00
|
|
|
//This field must be non-zero.
|
|
|
|
TimeoutSeconds int32 `protobuf:"varint,6,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
|
|
|
|
//*
|
|
|
|
//The maximum number of satoshis that will be paid as a fee of the payment.
|
|
|
|
//If this field is left to the default value of 0, only zero-fee routes will
|
|
|
|
//be considered. This usually means single hop routes connecting directly to
|
|
|
|
//the destination. To send the payment without a fee limit, use max int here.
|
2019-11-11 18:44:08 +03:00
|
|
|
//
|
|
|
|
//The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
|
2019-04-18 10:34:28 +03:00
|
|
|
FeeLimitSat int64 `protobuf:"varint,7,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
2019-11-11 18:44:08 +03:00
|
|
|
//The maximum number of millisatoshis that will be paid as a fee of the
|
|
|
|
//payment. If this field is left to the default value of 0, only zero-fee
|
|
|
|
//routes will be considered. This usually means single hop routes connecting
|
|
|
|
//directly to the destination. To send the payment without a fee limit, use
|
|
|
|
//max int here.
|
|
|
|
//
|
|
|
|
//The fields fee_limit_sat and fee_limit_msat are mutually exclusive.
|
|
|
|
FeeLimitMsat int64 `protobuf:"varint,13,opt,name=fee_limit_msat,json=feeLimitMsat,proto3" json:"fee_limit_msat,omitempty"`
|
|
|
|
//*
|
2019-05-15 16:07:30 +03:00
|
|
|
//The channel id of the channel that must be taken to the first hop. If zero,
|
|
|
|
//any channel may be used.
|
2019-04-18 10:34:28 +03:00
|
|
|
OutgoingChanId uint64 `protobuf:"varint,8,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"`
|
|
|
|
//*
|
2019-11-18 14:08:42 +03:00
|
|
|
//The pubkey of the last hop of the route. If empty, any hop may be used.
|
|
|
|
LastHopPubkey []byte `protobuf:"bytes,14,opt,name=last_hop_pubkey,json=lastHopPubkey,proto3" json:"last_hop_pubkey,omitempty"`
|
|
|
|
//*
|
2019-10-11 22:46:10 +03:00
|
|
|
//An optional maximum total time lock for the route. This should not exceed
|
|
|
|
//lnd's `--max-cltv-expiry` setting. If zero, then the value of
|
|
|
|
//`--max-cltv-expiry` is enforced.
|
2019-06-18 11:36:29 +03:00
|
|
|
CltvLimit int32 `protobuf:"varint,9,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,omitempty"`
|
|
|
|
//*
|
|
|
|
//Optional route hints to reach the destination through private channels.
|
2019-07-31 07:44:02 +03:00
|
|
|
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,10,rep,name=route_hints,proto3" json:"route_hints,omitempty"`
|
|
|
|
//*
|
|
|
|
//An optional field that can be used to pass an arbitrary set of TLV records
|
|
|
|
//to a peer which understands the new records. This can be used to pass
|
2019-11-20 14:00:25 +03:00
|
|
|
//application specific data during the payment attempt. Record types are
|
|
|
|
//required to be in the custom range >= 65536. When using REST, the values
|
|
|
|
//must be encoded as base64.
|
|
|
|
DestCustomRecords map[uint64][]byte `protobuf:"bytes,11,rep,name=dest_custom_records,json=destCustomRecords,proto3" json:"dest_custom_records,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2019-11-25 16:13:21 +03:00
|
|
|
/// If set, circular payments to self are permitted.
|
2019-12-19 10:57:23 +03:00
|
|
|
AllowSelfPayment bool `protobuf:"varint,15,opt,name=allow_self_payment,json=allowSelfPayment,proto3" json:"allow_self_payment,omitempty"`
|
|
|
|
//*
|
|
|
|
//Features assumed to be supported by the final node. All transitive feature
|
2020-01-18 00:12:02 +03:00
|
|
|
//dependencies must also be set properly. For a given feature bit pair, either
|
2019-12-20 03:25:59 +03:00
|
|
|
//optional or remote may be set, but not both. If this field is nil or empty,
|
|
|
|
//the router will try to load destination features from the graph as a
|
|
|
|
//fallback.
|
2019-12-19 10:57:23 +03:00
|
|
|
DestFeatures []lnrpc.FeatureBit `protobuf:"varint,16,rep,packed,name=dest_features,json=destFeatures,proto3,enum=lnrpc.FeatureBit" json:"dest_features,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) Reset() { *m = SendPaymentRequest{} }
|
|
|
|
func (m *SendPaymentRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SendPaymentRequest) ProtoMessage() {}
|
|
|
|
func (*SendPaymentRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{0}
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SendPaymentRequest.Unmarshal(m, b)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SendPaymentRequest.Marshal(b, m, deterministic)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SendPaymentRequest.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SendPaymentRequest.Size(m)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SendPaymentRequest.DiscardUnknown(m)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
var xxx_messageInfo_SendPaymentRequest proto.InternalMessageInfo
|
2018-10-23 07:43:47 +03:00
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetDest() []byte {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-04-18 10:34:28 +03:00
|
|
|
return m.Dest
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-04-18 10:34:28 +03:00
|
|
|
return nil
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetAmt() int64 {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-04-18 10:34:28 +03:00
|
|
|
return m.Amt
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-11-11 18:44:08 +03:00
|
|
|
func (m *SendPaymentRequest) GetAmtMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AmtMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetPaymentHash() []byte {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-04-18 10:34:28 +03:00
|
|
|
return m.PaymentHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetFinalCltvDelta() int32 {
|
2019-04-18 10:34:28 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.FinalCltvDelta
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetPaymentRequest() string {
|
2019-04-18 10:34:28 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.PaymentRequest
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetTimeoutSeconds() int32 {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.TimeoutSeconds
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetFeeLimitSat() int64 {
|
2019-04-18 10:34:28 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.FeeLimitSat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-11-11 18:44:08 +03:00
|
|
|
func (m *SendPaymentRequest) GetFeeLimitMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FeeLimitMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetOutgoingChanId() uint64 {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-04-18 10:34:28 +03:00
|
|
|
return m.OutgoingChanId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-11-18 14:08:42 +03:00
|
|
|
func (m *SendPaymentRequest) GetLastHopPubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.LastHopPubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetCltvLimit() int32 {
|
2019-04-18 10:34:28 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.CltvLimit
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-06-18 11:36:29 +03:00
|
|
|
func (m *SendPaymentRequest) GetRouteHints() []*lnrpc.RouteHint {
|
|
|
|
if m != nil {
|
|
|
|
return m.RouteHints
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-11-20 14:00:25 +03:00
|
|
|
func (m *SendPaymentRequest) GetDestCustomRecords() map[uint64][]byte {
|
2019-07-31 07:44:02 +03:00
|
|
|
if m != nil {
|
2019-11-20 14:00:25 +03:00
|
|
|
return m.DestCustomRecords
|
2019-07-31 07:44:02 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-11-25 16:13:21 +03:00
|
|
|
func (m *SendPaymentRequest) GetAllowSelfPayment() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AllowSelfPayment
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2019-12-19 10:57:23 +03:00
|
|
|
func (m *SendPaymentRequest) GetDestFeatures() []lnrpc.FeatureBit {
|
|
|
|
if m != nil {
|
|
|
|
return m.DestFeatures
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
type TrackPaymentRequest struct {
|
|
|
|
/// The hash of the payment to look up.
|
|
|
|
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
2018-10-23 07:43:47 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) Reset() { *m = TrackPaymentRequest{} }
|
|
|
|
func (m *TrackPaymentRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TrackPaymentRequest) ProtoMessage() {}
|
|
|
|
func (*TrackPaymentRequest) Descriptor() ([]byte, []int) {
|
2019-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{1}
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TrackPaymentRequest.Unmarshal(m, b)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TrackPaymentRequest.Marshal(b, m, deterministic)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TrackPaymentRequest.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TrackPaymentRequest.Size(m)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TrackPaymentRequest.DiscardUnknown(m)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
var xxx_messageInfo_TrackPaymentRequest proto.InternalMessageInfo
|
2018-10-23 07:43:47 +03:00
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *TrackPaymentRequest) GetPaymentHash() []byte {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-03-22 12:21:25 +03:00
|
|
|
return m.PaymentHash
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
type PaymentStatus struct {
|
|
|
|
/// Current state the payment is in.
|
|
|
|
State PaymentState `protobuf:"varint,1,opt,name=state,proto3,enum=routerrpc.PaymentState" json:"state,omitempty"`
|
|
|
|
//*
|
|
|
|
//The pre-image of the payment when state is SUCCEEDED.
|
|
|
|
Preimage []byte `protobuf:"bytes,2,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
|
|
|
//*
|
|
|
|
//The taken route when state is SUCCEEDED.
|
2019-11-20 07:42:38 +03:00
|
|
|
Route *lnrpc.Route `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
|
|
|
|
//*
|
|
|
|
//The HTLCs made in attempt to settle the payment [EXPERIMENTAL].
|
|
|
|
Htlcs []*lnrpc.HTLCAttempt `protobuf:"bytes,4,rep,name=htlcs,proto3" json:"htlcs,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-03-22 12:21:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentStatus) Reset() { *m = PaymentStatus{} }
|
|
|
|
func (m *PaymentStatus) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PaymentStatus) ProtoMessage() {}
|
|
|
|
func (*PaymentStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{2}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PaymentStatus.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PaymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PaymentStatus.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PaymentStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PaymentStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PaymentStatus) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PaymentStatus.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PaymentStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PaymentStatus.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PaymentStatus proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PaymentStatus) GetState() PaymentState {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-03-22 12:21:25 +03:00
|
|
|
return m.State
|
|
|
|
}
|
|
|
|
return PaymentState_IN_FLIGHT
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentStatus) GetPreimage() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Preimage
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (m *PaymentStatus) GetRoute() *lnrpc.Route {
|
2018-10-23 07:43:47 +03:00
|
|
|
if m != nil {
|
2019-03-22 12:21:25 +03:00
|
|
|
return m.Route
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
return nil
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
2019-11-20 07:42:38 +03:00
|
|
|
func (m *PaymentStatus) GetHtlcs() []*lnrpc.HTLCAttempt {
|
|
|
|
if m != nil {
|
|
|
|
return m.Htlcs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
type RouteFeeRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The destination once wishes to obtain a routing fee quote to.
|
2018-10-23 07:43:47 +03:00
|
|
|
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The amount one wishes to send to the target destination.
|
2018-10-23 07:43:47 +03:00
|
|
|
AmtSat int64 `protobuf:"varint,2,opt,name=amt_sat,json=amtSat,proto3" json:"amt_sat,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RouteFeeRequest) Reset() { *m = RouteFeeRequest{} }
|
|
|
|
func (m *RouteFeeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RouteFeeRequest) ProtoMessage() {}
|
|
|
|
func (*RouteFeeRequest) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{3}
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func (m *RouteFeeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RouteFeeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RouteFeeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RouteFeeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *RouteFeeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RouteFeeRequest.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
func (m *RouteFeeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RouteFeeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RouteFeeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RouteFeeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RouteFeeRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *RouteFeeRequest) GetDest() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Dest
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RouteFeeRequest) GetAmtSat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AmtSat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type RouteFeeResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//A lower bound of the estimated fee to the target destination within the
|
|
|
|
//network, expressed in milli-satoshis.
|
2018-10-23 07:43:47 +03:00
|
|
|
RoutingFeeMsat int64 `protobuf:"varint,1,opt,name=routing_fee_msat,json=routingFeeMsat,proto3" json:"routing_fee_msat,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//An estimate of the worst case time delay that can occur. Note that callers
|
|
|
|
//will still need to factor in the final CLTV delta of the last hop into this
|
|
|
|
//value.
|
2018-10-23 07:43:47 +03:00
|
|
|
TimeLockDelay int64 `protobuf:"varint,2,opt,name=time_lock_delay,json=timeLockDelay,proto3" json:"time_lock_delay,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RouteFeeResponse) Reset() { *m = RouteFeeResponse{} }
|
|
|
|
func (m *RouteFeeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RouteFeeResponse) ProtoMessage() {}
|
|
|
|
func (*RouteFeeResponse) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{4}
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func (m *RouteFeeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RouteFeeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RouteFeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RouteFeeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *RouteFeeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RouteFeeResponse.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
func (m *RouteFeeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RouteFeeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RouteFeeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RouteFeeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RouteFeeResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *RouteFeeResponse) GetRoutingFeeMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.RoutingFeeMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RouteFeeResponse) GetTimeLockDelay() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TimeLockDelay
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
type SendToRouteRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
/// The payment hash to use for the HTLC.
|
2019-03-14 18:31:39 +03:00
|
|
|
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Route that should be used to attempt to complete the payment.
|
2019-03-14 18:31:39 +03:00
|
|
|
Route *lnrpc.Route `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendToRouteRequest) Reset() { *m = SendToRouteRequest{} }
|
|
|
|
func (m *SendToRouteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SendToRouteRequest) ProtoMessage() {}
|
|
|
|
func (*SendToRouteRequest) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{5}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (m *SendToRouteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SendToRouteRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SendToRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SendToRouteRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SendToRouteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SendToRouteRequest.Merge(m, src)
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
func (m *SendToRouteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SendToRouteRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SendToRouteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SendToRouteRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SendToRouteRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SendToRouteRequest) GetPaymentHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PaymentHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendToRouteRequest) GetRoute() *lnrpc.Route {
|
|
|
|
if m != nil {
|
|
|
|
return m.Route
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type SendToRouteResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
/// The preimage obtained by making the payment.
|
2019-03-14 18:31:39 +03:00
|
|
|
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// The failure message in case the payment failed.
|
2019-03-14 18:31:39 +03:00
|
|
|
Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendToRouteResponse) Reset() { *m = SendToRouteResponse{} }
|
|
|
|
func (m *SendToRouteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*SendToRouteResponse) ProtoMessage() {}
|
|
|
|
func (*SendToRouteResponse) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{6}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (m *SendToRouteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_SendToRouteResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *SendToRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_SendToRouteResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *SendToRouteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_SendToRouteResponse.Merge(m, src)
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
func (m *SendToRouteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_SendToRouteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *SendToRouteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_SendToRouteResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_SendToRouteResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *SendToRouteResponse) GetPreimage() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Preimage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SendToRouteResponse) GetFailure() *Failure {
|
|
|
|
if m != nil {
|
|
|
|
return m.Failure
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Failure struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
/// Failure code as defined in the Lightning spec
|
2019-03-14 18:31:39 +03:00
|
|
|
Code Failure_FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=routerrpc.Failure_FailureCode" json:"code,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// An optional channel update message.
|
2019-03-14 18:31:39 +03:00
|
|
|
ChannelUpdate *ChannelUpdate `protobuf:"bytes,3,opt,name=channel_update,json=channelUpdate,proto3" json:"channel_update,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// A failure type-dependent htlc value.
|
2019-03-14 18:31:39 +03:00
|
|
|
HtlcMsat uint64 `protobuf:"varint,4,opt,name=htlc_msat,json=htlcMsat,proto3" json:"htlc_msat,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// The sha256 sum of the onion payload.
|
2019-03-14 18:31:39 +03:00
|
|
|
OnionSha_256 []byte `protobuf:"bytes,5,opt,name=onion_sha_256,json=onionSha256,proto3" json:"onion_sha_256,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// A failure type-dependent cltv expiry value.
|
2019-03-14 18:31:39 +03:00
|
|
|
CltvExpiry uint32 `protobuf:"varint,6,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
/// A failure type-dependent flags value.
|
2019-06-11 11:24:19 +03:00
|
|
|
Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
|
|
|
|
//*
|
|
|
|
//The position in the path of the intermediate or final node that generated
|
|
|
|
//the failure message. Position zero is the sender node.
|
2019-06-12 13:18:58 +03:00
|
|
|
FailureSourceIndex uint32 `protobuf:"varint,8,opt,name=failure_source_index,json=failureSourceIndex,proto3" json:"failure_source_index,omitempty"`
|
|
|
|
/// A failure type-dependent block height.
|
|
|
|
Height uint32 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
|
2019-03-14 18:31:39 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) Reset() { *m = Failure{} }
|
|
|
|
func (m *Failure) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Failure) ProtoMessage() {}
|
|
|
|
func (*Failure) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{7}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (m *Failure) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Failure.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Failure.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *Failure) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Failure.Merge(m, src)
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
func (m *Failure) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Failure.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Failure) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Failure.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Failure proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Failure) GetCode() Failure_FailureCode {
|
|
|
|
if m != nil {
|
|
|
|
return m.Code
|
|
|
|
}
|
|
|
|
return Failure_RESERVED
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) GetChannelUpdate() *ChannelUpdate {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChannelUpdate
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) GetHtlcMsat() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.HtlcMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) GetOnionSha_256() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.OnionSha_256
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) GetCltvExpiry() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CltvExpiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Failure) GetFlags() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Flags
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-06-11 11:24:19 +03:00
|
|
|
func (m *Failure) GetFailureSourceIndex() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FailureSourceIndex
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-06-12 13:18:58 +03:00
|
|
|
func (m *Failure) GetHeight() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Height
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
type ChannelUpdate struct {
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The signature that validates the announced data and proves the ownership
|
|
|
|
//of node id.
|
2019-03-14 18:31:39 +03:00
|
|
|
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The target chain that this channel was opened within. This value
|
|
|
|
//should be the genesis hash of the target chain. Along with the short
|
|
|
|
//channel ID, this uniquely identifies the channel globally in a
|
|
|
|
//blockchain.
|
2019-03-14 18:31:39 +03:00
|
|
|
ChainHash []byte `protobuf:"bytes,2,opt,name=chain_hash,json=chainHash,proto3" json:"chain_hash,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The unique description of the funding transaction.
|
2019-03-14 18:31:39 +03:00
|
|
|
ChanId uint64 `protobuf:"varint,3,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//A timestamp that allows ordering in the case of multiple announcements.
|
|
|
|
//We should ignore the message if timestamp is not greater than the
|
|
|
|
//last-received.
|
2019-03-14 18:31:39 +03:00
|
|
|
Timestamp uint32 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
2019-05-24 10:08:07 +03:00
|
|
|
//The bitfield that describes whether optional fields are present in this
|
|
|
|
//update. Currently, the least-significant bit must be set to 1 if the
|
|
|
|
//optional field MaxHtlc is present.
|
|
|
|
MessageFlags uint32 `protobuf:"varint,10,opt,name=message_flags,json=messageFlags,proto3" json:"message_flags,omitempty"`
|
|
|
|
//*
|
2019-05-28 11:12:12 +03:00
|
|
|
//The bitfield that describes additional meta-data concerning how the
|
|
|
|
//update is to be interpreted. Currently, the least-significant bit must be
|
|
|
|
//set to 0 if the creating node corresponds to the first node in the
|
|
|
|
//previously sent channel announcement and 1 otherwise. If the second bit
|
|
|
|
//is set, then the channel is set to be disabled.
|
2019-03-14 18:31:39 +03:00
|
|
|
ChannelFlags uint32 `protobuf:"varint,5,opt,name=channel_flags,json=channelFlags,proto3" json:"channel_flags,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The minimum number of blocks this node requires to be added to the expiry
|
|
|
|
//of HTLCs. This is a security parameter determined by the node operator.
|
|
|
|
//This value represents the required gap between the time locks of the
|
|
|
|
//incoming and outgoing HTLC's set to this node.
|
2019-03-14 18:31:39 +03:00
|
|
|
TimeLockDelta uint32 `protobuf:"varint,6,opt,name=time_lock_delta,json=timeLockDelta,proto3" json:"time_lock_delta,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The minimum HTLC value which will be accepted.
|
2019-03-14 18:31:39 +03:00
|
|
|
HtlcMinimumMsat uint64 `protobuf:"varint,7,opt,name=htlc_minimum_msat,json=htlcMinimumMsat,proto3" json:"htlc_minimum_msat,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The base fee that must be used for incoming HTLC's to this particular
|
|
|
|
//channel. This value will be tacked onto the required for a payment
|
|
|
|
//independent of the size of the payment.
|
2019-03-14 18:31:39 +03:00
|
|
|
BaseFee uint32 `protobuf:"varint,8,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
|
2019-05-28 11:12:12 +03:00
|
|
|
//*
|
|
|
|
//The fee rate that will be charged per millionth of a satoshi.
|
2019-05-24 10:08:07 +03:00
|
|
|
FeeRate uint32 `protobuf:"varint,9,opt,name=fee_rate,json=feeRate,proto3" json:"fee_rate,omitempty"`
|
|
|
|
//*
|
|
|
|
//The maximum HTLC value which will be accepted.
|
|
|
|
HtlcMaximumMsat uint64 `protobuf:"varint,11,opt,name=htlc_maximum_msat,json=htlcMaximumMsat,proto3" json:"htlc_maximum_msat,omitempty"`
|
|
|
|
//*
|
|
|
|
//The set of data that was appended to this message, some of which we may
|
|
|
|
//not actually know how to iterate or parse. By holding onto this data, we
|
|
|
|
//ensure that we're able to properly validate the set of signatures that
|
|
|
|
//cover these new fields, and ensure we're able to make upgrades to the
|
|
|
|
//network in a forwards compatible manner.
|
|
|
|
ExtraOpaqueData []byte `protobuf:"bytes,12,opt,name=extra_opaque_data,json=extraOpaqueData,proto3" json:"extra_opaque_data,omitempty"`
|
2019-03-14 18:31:39 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) Reset() { *m = ChannelUpdate{} }
|
|
|
|
func (m *ChannelUpdate) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ChannelUpdate) ProtoMessage() {}
|
|
|
|
func (*ChannelUpdate) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{8}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (m *ChannelUpdate) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ChannelUpdate.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ChannelUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ChannelUpdate.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *ChannelUpdate) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ChannelUpdate.Merge(m, src)
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
func (m *ChannelUpdate) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ChannelUpdate.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ChannelUpdate) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ChannelUpdate.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ChannelUpdate proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetSignature() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetChainHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChainHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetChanId() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChanId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetTimestamp() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-05-24 10:08:07 +03:00
|
|
|
func (m *ChannelUpdate) GetMessageFlags() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.MessageFlags
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (m *ChannelUpdate) GetChannelFlags() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ChannelFlags
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetTimeLockDelta() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TimeLockDelta
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetHtlcMinimumMsat() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.HtlcMinimumMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetBaseFee() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.BaseFee
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetFeeRate() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FeeRate
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-05-24 10:08:07 +03:00
|
|
|
func (m *ChannelUpdate) GetHtlcMaximumMsat() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.HtlcMaximumMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ChannelUpdate) GetExtraOpaqueData() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ExtraOpaqueData
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-05-10 19:00:15 +03:00
|
|
|
type ResetMissionControlRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResetMissionControlRequest) Reset() { *m = ResetMissionControlRequest{} }
|
|
|
|
func (m *ResetMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ResetMissionControlRequest) ProtoMessage() {}
|
|
|
|
func (*ResetMissionControlRequest) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{9}
|
2019-05-10 19:00:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResetMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ResetMissionControlRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ResetMissionControlRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ResetMissionControlRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ResetMissionControlRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ResetMissionControlRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ResetMissionControlRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type ResetMissionControlResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResetMissionControlResponse) Reset() { *m = ResetMissionControlResponse{} }
|
|
|
|
func (m *ResetMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ResetMissionControlResponse) ProtoMessage() {}
|
|
|
|
func (*ResetMissionControlResponse) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{10}
|
2019-05-10 19:00:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ResetMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ResetMissionControlResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ResetMissionControlResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ResetMissionControlResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ResetMissionControlResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ResetMissionControlResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ResetMissionControlResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ResetMissionControlResponse proto.InternalMessageInfo
|
|
|
|
|
2019-05-10 11:38:31 +03:00
|
|
|
type QueryMissionControlRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryMissionControlRequest) Reset() { *m = QueryMissionControlRequest{} }
|
|
|
|
func (m *QueryMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryMissionControlRequest) ProtoMessage() {}
|
|
|
|
func (*QueryMissionControlRequest) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{11}
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryMissionControlRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryMissionControlRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryMissionControlRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryMissionControlRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryMissionControlRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryMissionControlRequest proto.InternalMessageInfo
|
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
/// QueryMissionControlResponse contains mission control state.
|
2019-05-10 11:38:31 +03:00
|
|
|
type QueryMissionControlResponse struct {
|
2019-07-29 16:10:58 +03:00
|
|
|
/// Node pair-level mission control state.
|
|
|
|
Pairs []*PairHistory `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty"`
|
2019-05-10 11:38:31 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryMissionControlResponse) Reset() { *m = QueryMissionControlResponse{} }
|
|
|
|
func (m *QueryMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryMissionControlResponse) ProtoMessage() {}
|
|
|
|
func (*QueryMissionControlResponse) Descriptor() ([]byte, []int) {
|
2019-03-22 12:21:25 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{12}
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryMissionControlResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryMissionControlResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryMissionControlResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryMissionControlResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryMissionControlResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryMissionControlResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryMissionControlResponse proto.InternalMessageInfo
|
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *QueryMissionControlResponse) GetPairs() []*PairHistory {
|
|
|
|
if m != nil {
|
|
|
|
return m.Pairs
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
/// PairHistory contains the mission control state for a particular node pair.
|
|
|
|
type PairHistory struct {
|
|
|
|
/// The source node pubkey of the pair.
|
|
|
|
NodeFrom []byte `protobuf:"bytes,1,opt,name=node_from,proto3" json:"node_from,omitempty"`
|
|
|
|
/// The destination node pubkey of the pair.
|
2019-09-30 10:12:50 +03:00
|
|
|
NodeTo []byte `protobuf:"bytes,2,opt,name=node_to,proto3" json:"node_to,omitempty"`
|
|
|
|
History *PairData `protobuf:"bytes,7,opt,name=history,proto3" json:"history,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) Reset() { *m = PairHistory{} }
|
|
|
|
func (m *PairHistory) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PairHistory) ProtoMessage() {}
|
|
|
|
func (*PairHistory) Descriptor() ([]byte, []int) {
|
2019-09-27 12:19:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{13}
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PairHistory.Unmarshal(m, b)
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PairHistory.Marshal(b, m, deterministic)
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PairHistory.Merge(m, src)
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PairHistory.Size(m)
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PairHistory.DiscardUnknown(m)
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
var xxx_messageInfo_PairHistory proto.InternalMessageInfo
|
2019-05-10 11:38:31 +03:00
|
|
|
|
2019-07-29 16:10:58 +03:00
|
|
|
func (m *PairHistory) GetNodeFrom() []byte {
|
2019-05-10 11:38:31 +03:00
|
|
|
if m != nil {
|
2019-07-29 16:10:58 +03:00
|
|
|
return m.NodeFrom
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
2019-07-29 16:10:58 +03:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PairHistory) GetNodeTo() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.NodeTo
|
|
|
|
}
|
|
|
|
return nil
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
|
2019-09-30 10:12:50 +03:00
|
|
|
func (m *PairHistory) GetHistory() *PairData {
|
|
|
|
if m != nil {
|
|
|
|
return m.History
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PairData struct {
|
2019-09-26 18:04:02 +03:00
|
|
|
/// Time of last failure.
|
|
|
|
FailTime int64 `protobuf:"varint,1,opt,name=fail_time,proto3" json:"fail_time,omitempty"`
|
|
|
|
//*
|
|
|
|
//Lowest amount that failed to forward rounded to whole sats. This may be
|
|
|
|
//set to zero if the failure is independent of amount.
|
|
|
|
FailAmtSat int64 `protobuf:"varint,2,opt,name=fail_amt_sat,proto3" json:"fail_amt_sat,omitempty"`
|
|
|
|
//*
|
|
|
|
//Lowest amount that failed to forward in millisats. This may be
|
|
|
|
//set to zero if the failure is independent of amount.
|
|
|
|
FailAmtMsat int64 `protobuf:"varint,4,opt,name=fail_amt_msat,proto3" json:"fail_amt_msat,omitempty"`
|
|
|
|
/// Time of last success.
|
|
|
|
SuccessTime int64 `protobuf:"varint,5,opt,name=success_time,proto3" json:"success_time,omitempty"`
|
|
|
|
/// Highest amount that we could successfully forward rounded to whole sats.
|
|
|
|
SuccessAmtSat int64 `protobuf:"varint,6,opt,name=success_amt_sat,proto3" json:"success_amt_sat,omitempty"`
|
|
|
|
/// Highest amount that we could successfully forward in millisats.
|
|
|
|
SuccessAmtMsat int64 `protobuf:"varint,7,opt,name=success_amt_msat,proto3" json:"success_amt_msat,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-09-30 10:12:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PairData) Reset() { *m = PairData{} }
|
|
|
|
func (m *PairData) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PairData) ProtoMessage() {}
|
|
|
|
func (*PairData) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{14}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PairData) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PairData.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PairData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PairData.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *PairData) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PairData.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *PairData) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PairData.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PairData) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PairData.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PairData proto.InternalMessageInfo
|
|
|
|
|
2019-09-26 18:04:02 +03:00
|
|
|
func (m *PairData) GetFailTime() int64 {
|
2019-05-10 11:38:31 +03:00
|
|
|
if m != nil {
|
2019-09-26 18:04:02 +03:00
|
|
|
return m.FailTime
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-09-26 18:04:02 +03:00
|
|
|
func (m *PairData) GetFailAmtSat() int64 {
|
2019-05-10 11:38:31 +03:00
|
|
|
if m != nil {
|
2019-09-26 18:04:02 +03:00
|
|
|
return m.FailAmtSat
|
2019-09-26 17:33:08 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-09-26 18:04:02 +03:00
|
|
|
func (m *PairData) GetFailAmtMsat() int64 {
|
2019-09-26 17:33:08 +03:00
|
|
|
if m != nil {
|
2019-09-26 18:04:02 +03:00
|
|
|
return m.FailAmtMsat
|
2019-05-10 11:38:31 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-09-26 18:04:02 +03:00
|
|
|
func (m *PairData) GetSuccessTime() int64 {
|
2019-07-29 15:20:06 +03:00
|
|
|
if m != nil {
|
2019-09-26 18:04:02 +03:00
|
|
|
return m.SuccessTime
|
2019-07-29 15:20:06 +03:00
|
|
|
}
|
2019-09-26 18:04:02 +03:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PairData) GetSuccessAmtSat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SuccessAmtSat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PairData) GetSuccessAmtMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SuccessAmtMsat
|
|
|
|
}
|
|
|
|
return 0
|
2019-07-29 15:20:06 +03:00
|
|
|
}
|
|
|
|
|
2019-09-27 12:43:12 +03:00
|
|
|
type QueryProbabilityRequest struct {
|
|
|
|
/// The source node pubkey of the pair.
|
|
|
|
FromNode []byte `protobuf:"bytes,1,opt,name=from_node,proto3" json:"from_node,omitempty"`
|
|
|
|
/// The destination node pubkey of the pair.
|
|
|
|
ToNode []byte `protobuf:"bytes,2,opt,name=to_node,proto3" json:"to_node,omitempty"`
|
|
|
|
/// The amount for which to calculate a probability.
|
|
|
|
AmtMsat int64 `protobuf:"varint,3,opt,name=amt_msat,proto3" json:"amt_msat,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityRequest) Reset() { *m = QueryProbabilityRequest{} }
|
|
|
|
func (m *QueryProbabilityRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryProbabilityRequest) ProtoMessage() {}
|
|
|
|
func (*QueryProbabilityRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{15}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryProbabilityRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryProbabilityRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryProbabilityRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryProbabilityRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryProbabilityRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryProbabilityRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryProbabilityRequest) GetFromNode() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.FromNode
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityRequest) GetToNode() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ToNode
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityRequest) GetAmtMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AmtMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type QueryProbabilityResponse struct {
|
|
|
|
/// The success probability for the requested pair.
|
|
|
|
Probability float64 `protobuf:"fixed64,1,opt,name=probability,proto3" json:"probability,omitempty"`
|
|
|
|
/// The historical data for the requested pair.
|
|
|
|
History *PairData `protobuf:"bytes,2,opt,name=history,proto3" json:"history,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityResponse) Reset() { *m = QueryProbabilityResponse{} }
|
|
|
|
func (m *QueryProbabilityResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryProbabilityResponse) ProtoMessage() {}
|
|
|
|
func (*QueryProbabilityResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{16}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryProbabilityResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryProbabilityResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryProbabilityResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryProbabilityResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryProbabilityResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryProbabilityResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryProbabilityResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryProbabilityResponse) GetProbability() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Probability
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryProbabilityResponse) GetHistory() *PairData {
|
|
|
|
if m != nil {
|
|
|
|
return m.History
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-08-29 14:03:37 +03:00
|
|
|
type BuildRouteRequest struct {
|
|
|
|
//*
|
|
|
|
//The amount to send expressed in msat. If set to zero, the minimum routable
|
|
|
|
//amount is used.
|
|
|
|
AmtMsat int64 `protobuf:"varint,1,opt,name=amt_msat,json=amtMsat,proto3" json:"amt_msat,omitempty"`
|
|
|
|
//*
|
|
|
|
//CLTV delta from the current height that should be used for the timelock
|
|
|
|
//of the final hop
|
|
|
|
FinalCltvDelta int32 `protobuf:"varint,2,opt,name=final_cltv_delta,json=finalCltvDelta,proto3" json:"final_cltv_delta,omitempty"`
|
|
|
|
//*
|
|
|
|
//The channel id of the channel that must be taken to the first hop. If zero,
|
|
|
|
//any channel may be used.
|
|
|
|
OutgoingChanId uint64 `protobuf:"varint,3,opt,name=outgoing_chan_id,json=outgoingChanId,proto3" json:"outgoing_chan_id,omitempty"`
|
|
|
|
//*
|
|
|
|
//A list of hops that defines the route. This does not include the source hop
|
|
|
|
//pubkey.
|
|
|
|
HopPubkeys [][]byte `protobuf:"bytes,4,rep,name=hop_pubkeys,json=hopPubkeys,proto3" json:"hop_pubkeys,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) Reset() { *m = BuildRouteRequest{} }
|
|
|
|
func (m *BuildRouteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BuildRouteRequest) ProtoMessage() {}
|
|
|
|
func (*BuildRouteRequest) Descriptor() ([]byte, []int) {
|
2019-09-27 12:43:12 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{17}
|
2019-08-29 14:03:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BuildRouteRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BuildRouteRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BuildRouteRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BuildRouteRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BuildRouteRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BuildRouteRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) GetAmtMsat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AmtMsat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) GetFinalCltvDelta() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FinalCltvDelta
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) GetOutgoingChanId() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.OutgoingChanId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteRequest) GetHopPubkeys() [][]byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.HopPubkeys
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BuildRouteResponse struct {
|
|
|
|
//*
|
|
|
|
//Fully specified route that can be used to execute the payment.
|
|
|
|
Route *lnrpc.Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteResponse) Reset() { *m = BuildRouteResponse{} }
|
|
|
|
func (m *BuildRouteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BuildRouteResponse) ProtoMessage() {}
|
|
|
|
func (*BuildRouteResponse) Descriptor() ([]byte, []int) {
|
2019-09-27 12:43:12 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{18}
|
2019-08-29 14:03:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BuildRouteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BuildRouteResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BuildRouteResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BuildRouteResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BuildRouteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BuildRouteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BuildRouteResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BuildRouteResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BuildRouteResponse) GetRoute() *lnrpc.Route {
|
|
|
|
if m != nil {
|
|
|
|
return m.Route
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func init() {
|
2019-03-22 12:21:25 +03:00
|
|
|
proto.RegisterEnum("routerrpc.PaymentState", PaymentState_name, PaymentState_value)
|
2019-05-15 16:07:30 +03:00
|
|
|
proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value)
|
2019-03-22 12:21:25 +03:00
|
|
|
proto.RegisterType((*SendPaymentRequest)(nil), "routerrpc.SendPaymentRequest")
|
2019-11-20 14:00:25 +03:00
|
|
|
proto.RegisterMapType((map[uint64][]byte)(nil), "routerrpc.SendPaymentRequest.DestCustomRecordsEntry")
|
2019-03-22 12:21:25 +03:00
|
|
|
proto.RegisterType((*TrackPaymentRequest)(nil), "routerrpc.TrackPaymentRequest")
|
|
|
|
proto.RegisterType((*PaymentStatus)(nil), "routerrpc.PaymentStatus")
|
2018-10-23 07:43:47 +03:00
|
|
|
proto.RegisterType((*RouteFeeRequest)(nil), "routerrpc.RouteFeeRequest")
|
|
|
|
proto.RegisterType((*RouteFeeResponse)(nil), "routerrpc.RouteFeeResponse")
|
2019-03-14 18:31:39 +03:00
|
|
|
proto.RegisterType((*SendToRouteRequest)(nil), "routerrpc.SendToRouteRequest")
|
|
|
|
proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse")
|
|
|
|
proto.RegisterType((*Failure)(nil), "routerrpc.Failure")
|
|
|
|
proto.RegisterType((*ChannelUpdate)(nil), "routerrpc.ChannelUpdate")
|
2019-05-10 19:00:15 +03:00
|
|
|
proto.RegisterType((*ResetMissionControlRequest)(nil), "routerrpc.ResetMissionControlRequest")
|
|
|
|
proto.RegisterType((*ResetMissionControlResponse)(nil), "routerrpc.ResetMissionControlResponse")
|
2019-05-10 11:38:31 +03:00
|
|
|
proto.RegisterType((*QueryMissionControlRequest)(nil), "routerrpc.QueryMissionControlRequest")
|
|
|
|
proto.RegisterType((*QueryMissionControlResponse)(nil), "routerrpc.QueryMissionControlResponse")
|
2019-07-29 16:10:58 +03:00
|
|
|
proto.RegisterType((*PairHistory)(nil), "routerrpc.PairHistory")
|
2019-09-30 10:12:50 +03:00
|
|
|
proto.RegisterType((*PairData)(nil), "routerrpc.PairData")
|
2019-09-27 12:43:12 +03:00
|
|
|
proto.RegisterType((*QueryProbabilityRequest)(nil), "routerrpc.QueryProbabilityRequest")
|
|
|
|
proto.RegisterType((*QueryProbabilityResponse)(nil), "routerrpc.QueryProbabilityResponse")
|
2019-08-29 14:03:37 +03:00
|
|
|
proto.RegisterType((*BuildRouteRequest)(nil), "routerrpc.BuildRouteRequest")
|
|
|
|
proto.RegisterType((*BuildRouteResponse)(nil), "routerrpc.BuildRouteResponse")
|
2019-05-15 16:07:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
|
|
|
|
|
|
|
|
var fileDescriptor_7a0613f69d37b0a5 = []byte{
|
2019-12-20 13:25:08 +03:00
|
|
|
// 2102 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xcb, 0x73, 0xdb, 0xc6,
|
|
|
|
0x19, 0x0f, 0xc4, 0xf7, 0xc7, 0x17, 0xb4, 0x92, 0x65, 0x98, 0xb2, 0x62, 0x05, 0x76, 0x1d, 0x8e,
|
|
|
|
0xc7, 0x91, 0x5c, 0xb5, 0xf1, 0x78, 0x7a, 0x68, 0x87, 0x22, 0xc1, 0x08, 0x32, 0x09, 0xca, 0x4b,
|
|
|
|
0xd2, 0x89, 0x9b, 0xc3, 0x0e, 0x44, 0xae, 0x44, 0x8c, 0x40, 0x80, 0x01, 0x96, 0x8e, 0xf5, 0x0f,
|
|
|
|
0xf4, 0xd4, 0xff, 0xa3, 0xbd, 0xb4, 0x97, 0x9e, 0xfb, 0xef, 0xb4, 0xf7, 0xde, 0x7a, 0xeb, 0xec,
|
|
|
|
0x2e, 0x40, 0x82, 0x14, 0xe5, 0xf4, 0x44, 0xec, 0xef, 0x7b, 0xed, 0xee, 0xb7, 0xdf, 0x8b, 0xb0,
|
|
|
|
0x17, 0xf8, 0x73, 0x46, 0x83, 0x60, 0x36, 0x3a, 0x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x86,
|
|
|
|
0xfd, 0xce, 0x11, 0x57, 0xa7, 0x84, 0xda, 0x97, 0xf7, 0x91, 0x23, 0x6d, 0x63, 0xd8, 0xd9, 0x90,
|
|
|
|
0xc0, 0xd1, 0xaf, 0x92, 0x3b, 0xb8, 0x37, 0xfd, 0xd7, 0x9e, 0xff, 0x12, 0xdb, 0xd2, 0xca, 0x86,
|
|
|
|
0x4c, 0xbf, 0x62, 0xe5, 0xfe, 0x3a, 0xb1, 0x62, 0xe5, 0x73, 0x05, 0xe3, 0x47, 0x50, 0xd7, 0x33,
|
|
|
|
0x01, 0xd2, 0xd7, 0x65, 0xef, 0x66, 0xa5, 0xda, 0xd3, 0xcf, 0xf2, 0x44, 0xca, 0x4d, 0x80, 0x65,
|
|
|
|
0x3c, 0xa1, 0xc7, 0x09, 0x91, 0x3b, 0xf9, 0xa0, 0x76, 0x70, 0x0f, 0x55, 0xaa, 0x3a, 0xfd, 0xf5,
|
|
|
|
0x1f, 0x8f, 0xaf, 0x1d, 0x36, 0x99, 0x5f, 0x1e, 0x8d, 0xfc, 0xe9, 0xb1, 0xcb, 0x5b, 0x7c, 0xcf,
|
|
|
|
0xf1, 0xae, 0x3d, 0xca, 0x7e, 0xf6, 0x83, 0x9b, 0x63, 0xd7, 0x1b, 0x1f, 0x8b, 0xb0, 0x3c, 0x5e,
|
|
|
|
0x68, 0xb9, 0xcc, 0x8a, 0x3f, 0xa4, 0x7e, 0xf3, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0xf6,
|
|
|
|
0xab, 0x74, 0xc0, 0x12, 0x00, 0x00,
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// RouterClient is the client API for Router service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type RouterClient interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendPayment attempts to route a payment described by the passed
|
2019-03-22 12:21:25 +03:00
|
|
|
//PaymentRequest to the final destination. The call returns a stream of
|
|
|
|
//payment status updates.
|
|
|
|
SendPayment(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentClient, error)
|
|
|
|
//*
|
|
|
|
//TrackPayment returns an update stream for the payment identified by the
|
|
|
|
//payment hash.
|
|
|
|
TrackPayment(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentClient, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
|
|
|
//may cost to send an HTLC to the target end destination.
|
2018-10-23 07:43:47 +03:00
|
|
|
EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendToRoute attempts to make a payment via the specified route. This method
|
|
|
|
//differs from SendPayment in that it allows users to specify a full route
|
|
|
|
//manually. This can be used for things like rebalancing, and atomic swaps.
|
2019-03-14 18:31:39 +03:00
|
|
|
SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error)
|
2019-05-10 19:00:15 +03:00
|
|
|
//*
|
|
|
|
//ResetMissionControl clears all mission control state and starts with a clean
|
|
|
|
//slate.
|
|
|
|
ResetMissionControl(ctx context.Context, in *ResetMissionControlRequest, opts ...grpc.CallOption) (*ResetMissionControlResponse, error)
|
2019-05-10 11:38:31 +03:00
|
|
|
//*
|
|
|
|
//QueryMissionControl exposes the internal mission control state to callers.
|
|
|
|
//It is a development feature.
|
|
|
|
QueryMissionControl(ctx context.Context, in *QueryMissionControlRequest, opts ...grpc.CallOption) (*QueryMissionControlResponse, error)
|
2019-08-29 14:03:37 +03:00
|
|
|
//*
|
2019-09-27 12:43:12 +03:00
|
|
|
//QueryProbability returns the current success probability estimate for a
|
|
|
|
//given node pair and amount.
|
|
|
|
QueryProbability(ctx context.Context, in *QueryProbabilityRequest, opts ...grpc.CallOption) (*QueryProbabilityResponse, error)
|
|
|
|
//*
|
2019-08-29 14:03:37 +03:00
|
|
|
//BuildRoute builds a fully specified route based on a list of hop public
|
|
|
|
//keys. It retrieves the relevant channel policies from the graph in order to
|
|
|
|
//calculate the correct fees and time locks.
|
|
|
|
BuildRoute(ctx context.Context, in *BuildRouteRequest, opts ...grpc.CallOption) (*BuildRouteResponse, error)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type routerClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRouterClient(cc *grpc.ClientConn) RouterClient {
|
|
|
|
return &routerClient{cc}
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func (c *routerClient) SendPayment(ctx context.Context, in *SendPaymentRequest, opts ...grpc.CallOption) (Router_SendPaymentClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_Router_serviceDesc.Streams[0], "/routerrpc.Router/SendPayment", opts...)
|
2018-10-23 07:43:47 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
x := &routerSendPaymentClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Router_SendPaymentClient interface {
|
|
|
|
Recv() (*PaymentStatus, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routerSendPaymentClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routerSendPaymentClient) Recv() (*PaymentStatus, error) {
|
|
|
|
m := new(PaymentStatus)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *routerClient) TrackPayment(ctx context.Context, in *TrackPaymentRequest, opts ...grpc.CallOption) (Router_TrackPaymentClient, error) {
|
|
|
|
stream, err := c.cc.NewStream(ctx, &_Router_serviceDesc.Streams[1], "/routerrpc.Router/TrackPayment", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &routerTrackPaymentClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Router_TrackPaymentClient interface {
|
|
|
|
Recv() (*PaymentStatus, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routerTrackPaymentClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routerTrackPaymentClient) Recv() (*PaymentStatus, error) {
|
|
|
|
m := new(PaymentStatus)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *routerClient) EstimateRouteFee(ctx context.Context, in *RouteFeeRequest, opts ...grpc.CallOption) (*RouteFeeResponse, error) {
|
|
|
|
out := new(RouteFeeResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/EstimateRouteFee", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func (c *routerClient) SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) {
|
|
|
|
out := new(SendToRouteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/SendToRoute", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-05-10 19:00:15 +03:00
|
|
|
func (c *routerClient) ResetMissionControl(ctx context.Context, in *ResetMissionControlRequest, opts ...grpc.CallOption) (*ResetMissionControlResponse, error) {
|
|
|
|
out := new(ResetMissionControlResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/ResetMissionControl", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-05-10 11:38:31 +03:00
|
|
|
func (c *routerClient) QueryMissionControl(ctx context.Context, in *QueryMissionControlRequest, opts ...grpc.CallOption) (*QueryMissionControlResponse, error) {
|
|
|
|
out := new(QueryMissionControlResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/QueryMissionControl", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-09-27 12:43:12 +03:00
|
|
|
func (c *routerClient) QueryProbability(ctx context.Context, in *QueryProbabilityRequest, opts ...grpc.CallOption) (*QueryProbabilityResponse, error) {
|
|
|
|
out := new(QueryProbabilityResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/QueryProbability", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-08-29 14:03:37 +03:00
|
|
|
func (c *routerClient) BuildRoute(ctx context.Context, in *BuildRouteRequest, opts ...grpc.CallOption) (*BuildRouteResponse, error) {
|
|
|
|
out := new(BuildRouteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/BuildRoute", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
// RouterServer is the server API for Router service.
|
|
|
|
type RouterServer interface {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendPayment attempts to route a payment described by the passed
|
2019-03-22 12:21:25 +03:00
|
|
|
//PaymentRequest to the final destination. The call returns a stream of
|
|
|
|
//payment status updates.
|
|
|
|
SendPayment(*SendPaymentRequest, Router_SendPaymentServer) error
|
|
|
|
//*
|
|
|
|
//TrackPayment returns an update stream for the payment identified by the
|
|
|
|
//payment hash.
|
|
|
|
TrackPayment(*TrackPaymentRequest, Router_TrackPaymentServer) error
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it
|
|
|
|
//may cost to send an HTLC to the target end destination.
|
2018-10-23 07:43:47 +03:00
|
|
|
EstimateRouteFee(context.Context, *RouteFeeRequest) (*RouteFeeResponse, error)
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//SendToRoute attempts to make a payment via the specified route. This method
|
|
|
|
//differs from SendPayment in that it allows users to specify a full route
|
|
|
|
//manually. This can be used for things like rebalancing, and atomic swaps.
|
2019-03-14 18:31:39 +03:00
|
|
|
SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error)
|
2019-05-10 19:00:15 +03:00
|
|
|
//*
|
|
|
|
//ResetMissionControl clears all mission control state and starts with a clean
|
|
|
|
//slate.
|
|
|
|
ResetMissionControl(context.Context, *ResetMissionControlRequest) (*ResetMissionControlResponse, error)
|
2019-05-10 11:38:31 +03:00
|
|
|
//*
|
|
|
|
//QueryMissionControl exposes the internal mission control state to callers.
|
|
|
|
//It is a development feature.
|
|
|
|
QueryMissionControl(context.Context, *QueryMissionControlRequest) (*QueryMissionControlResponse, error)
|
2019-08-29 14:03:37 +03:00
|
|
|
//*
|
2019-09-27 12:43:12 +03:00
|
|
|
//QueryProbability returns the current success probability estimate for a
|
|
|
|
//given node pair and amount.
|
|
|
|
QueryProbability(context.Context, *QueryProbabilityRequest) (*QueryProbabilityResponse, error)
|
|
|
|
//*
|
2019-08-29 14:03:37 +03:00
|
|
|
//BuildRoute builds a fully specified route based on a list of hop public
|
|
|
|
//keys. It retrieves the relevant channel policies from the graph in order to
|
|
|
|
//calculate the correct fees and time locks.
|
|
|
|
BuildRoute(context.Context, *BuildRouteRequest) (*BuildRouteResponse, error)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterRouterServer(s *grpc.Server, srv RouterServer) {
|
|
|
|
s.RegisterService(&_Router_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2019-03-22 12:21:25 +03:00
|
|
|
func _Router_SendPayment_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
m := new(SendPaymentRequest)
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
return srv.(RouterServer).SendPayment(m, &routerSendPaymentServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type Router_SendPaymentServer interface {
|
|
|
|
Send(*PaymentStatus) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routerSendPaymentServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routerSendPaymentServer) Send(m *PaymentStatus) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Router_TrackPayment_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
|
|
m := new(TrackPaymentRequest)
|
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
2019-03-22 12:21:25 +03:00
|
|
|
return srv.(RouterServer).TrackPayment(m, &routerTrackPaymentServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type Router_TrackPaymentServer interface {
|
|
|
|
Send(*PaymentStatus) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type routerTrackPaymentServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *routerTrackPaymentServer) Send(m *PaymentStatus) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func _Router_EstimateRouteFee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RouteFeeRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).EstimateRouteFee(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/EstimateRouteFee",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).EstimateRouteFee(ctx, req.(*RouteFeeRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
func _Router_SendToRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SendToRouteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).SendToRoute(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/SendToRoute",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).SendToRoute(ctx, req.(*SendToRouteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-05-10 19:00:15 +03:00
|
|
|
func _Router_ResetMissionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ResetMissionControlRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).ResetMissionControl(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/ResetMissionControl",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).ResetMissionControl(ctx, req.(*ResetMissionControlRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-05-10 11:38:31 +03:00
|
|
|
func _Router_QueryMissionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryMissionControlRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).QueryMissionControl(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/QueryMissionControl",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).QueryMissionControl(ctx, req.(*QueryMissionControlRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-09-27 12:43:12 +03:00
|
|
|
func _Router_QueryProbability_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(QueryProbabilityRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).QueryProbability(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/QueryProbability",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).QueryProbability(ctx, req.(*QueryProbabilityRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-08-29 14:03:37 +03:00
|
|
|
func _Router_BuildRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(BuildRouteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).BuildRoute(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/BuildRoute",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).BuildRoute(ctx, req.(*BuildRouteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
var _Router_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "routerrpc.Router",
|
|
|
|
HandlerType: (*RouterServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "EstimateRouteFee",
|
|
|
|
Handler: _Router_EstimateRouteFee_Handler,
|
|
|
|
},
|
2019-03-14 18:31:39 +03:00
|
|
|
{
|
|
|
|
MethodName: "SendToRoute",
|
|
|
|
Handler: _Router_SendToRoute_Handler,
|
|
|
|
},
|
2019-05-10 19:00:15 +03:00
|
|
|
{
|
|
|
|
MethodName: "ResetMissionControl",
|
|
|
|
Handler: _Router_ResetMissionControl_Handler,
|
|
|
|
},
|
2019-05-10 11:38:31 +03:00
|
|
|
{
|
|
|
|
MethodName: "QueryMissionControl",
|
|
|
|
Handler: _Router_QueryMissionControl_Handler,
|
|
|
|
},
|
2019-09-27 12:43:12 +03:00
|
|
|
{
|
|
|
|
MethodName: "QueryProbability",
|
|
|
|
Handler: _Router_QueryProbability_Handler,
|
|
|
|
},
|
2019-08-29 14:03:37 +03:00
|
|
|
{
|
|
|
|
MethodName: "BuildRoute",
|
|
|
|
Handler: _Router_BuildRoute_Handler,
|
|
|
|
},
|
2018-10-23 07:43:47 +03:00
|
|
|
},
|
2019-03-22 12:21:25 +03:00
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "SendPayment",
|
|
|
|
Handler: _Router_SendPayment_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
StreamName: "TrackPayment",
|
|
|
|
Handler: _Router_TrackPayment_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
},
|
2018-10-23 07:43:47 +03:00
|
|
|
Metadata: "routerrpc/router.proto",
|
|
|
|
}
|