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-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-03-14 18:31:39 +03:00
|
|
|
Failure_RESERVED Failure_FailureCode = 0
|
|
|
|
Failure_UNKNOWN_PAYMENT_HASH 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
|
|
|
|
)
|
|
|
|
|
|
|
|
var Failure_FailureCode_name = map[int32]string{
|
|
|
|
0: "RESERVED",
|
|
|
|
1: "UNKNOWN_PAYMENT_HASH",
|
|
|
|
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-05-15 16:07:30 +03:00
|
|
|
|
2019-03-14 18:31:39 +03:00
|
|
|
var Failure_FailureCode_value = map[string]int32{
|
|
|
|
"RESERVED": 0,
|
|
|
|
"UNKNOWN_PAYMENT_HASH": 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,
|
|
|
|
}
|
|
|
|
|
|
|
|
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-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{6, 0}
|
2019-03-14 18:31:39 +03:00
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
type PaymentRequest struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//A serialized BOLT-11 payment request that contains all information
|
|
|
|
//required to dispatch the payment. If the pay req is invalid, or expired,
|
|
|
|
//an error will be returned.
|
2018-10-23 07:43:47 +03:00
|
|
|
PayReq string `protobuf:"bytes,1,opt,name=pay_req,json=payReq,proto3" json:"pay_req,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//An absolute limit on the highest fee we should pay when looking for a route
|
|
|
|
//to the destination. Routes with fees higher than this will be ignored, if
|
|
|
|
//there are no routes with a fee below this amount, an error will be
|
|
|
|
//returned.
|
2018-10-23 07:43:47 +03:00
|
|
|
FeeLimitSat int64 `protobuf:"varint,2,opt,name=fee_limit_sat,json=feeLimitSat,proto3" json:"fee_limit_sat,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//An absolute limit on the cumulative CLTV value along the route for this
|
|
|
|
//payment. Routes with total CLTV values higher than this will be ignored,
|
|
|
|
//if there are no routes with a CLTV value below this amount, an error will
|
|
|
|
//be returned.
|
2018-10-23 07:43:47 +03:00
|
|
|
CltvLimit int32 `protobuf:"varint,3,opt,name=cltv_limit,json=cltvLimit,proto3" json:"cltv_limit,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.
|
2018-10-23 07:43:47 +03:00
|
|
|
TimeoutSeconds int32 `protobuf:"varint,4,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,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.
|
2018-10-23 07:43:47 +03:00
|
|
|
OutgoingChannelId int64 `protobuf:"varint,5,opt,name=outgoing_channel_id,json=outgoingChannelId,proto3" json:"outgoing_channel_id,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentRequest) Reset() { *m = PaymentRequest{} }
|
|
|
|
func (m *PaymentRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PaymentRequest) ProtoMessage() {}
|
|
|
|
func (*PaymentRequest) 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
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func (m *PaymentRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PaymentRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PaymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PaymentRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *PaymentRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PaymentRequest.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
func (m *PaymentRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PaymentRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PaymentRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PaymentRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PaymentRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PaymentRequest) GetPayReq() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PayReq
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentRequest) GetFeeLimitSat() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FeeLimitSat
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentRequest) GetCltvLimit() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.CltvLimit
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentRequest) GetTimeoutSeconds() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TimeoutSeconds
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentRequest) GetOutgoingChannelId() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.OutgoingChannelId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type PaymentResponse struct {
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The payment hash that we paid to. Provided so callers are able to map
|
|
|
|
//responses (which may be streaming) back to their original requests.
|
2018-10-23 07:43:47 +03:00
|
|
|
PayHash []byte `protobuf:"bytes,1,opt,name=pay_hash,json=payHash,proto3" json:"pay_hash,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//The pre-image of the payment successfully completed.
|
2018-10-23 07:43:47 +03:00
|
|
|
PreImage []byte `protobuf:"bytes,2,opt,name=pre_image,json=preImage,proto3" json:"pre_image,omitempty"`
|
2019-05-15 16:07:30 +03:00
|
|
|
//*
|
|
|
|
//If not an empty string, then a string representation of the payment error.
|
2018-10-23 07:43:47 +03:00
|
|
|
PaymentErr string `protobuf:"bytes,3,opt,name=payment_err,json=paymentErr,proto3" json:"payment_err,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentResponse) Reset() { *m = PaymentResponse{} }
|
|
|
|
func (m *PaymentResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PaymentResponse) ProtoMessage() {}
|
|
|
|
func (*PaymentResponse) 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
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func (m *PaymentResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PaymentResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PaymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PaymentResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
func (m *PaymentResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PaymentResponse.Merge(m, src)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
func (m *PaymentResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PaymentResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PaymentResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PaymentResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PaymentResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PaymentResponse) GetPayHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PayHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentResponse) GetPreImage() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.PreImage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PaymentResponse) GetPaymentErr() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.PaymentErr
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
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-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{2}
|
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-05-15 16:07:30 +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 *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-05-15 16:07:30 +03:00
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{4}
|
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-05-15 16:07:30 +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 *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
|
|
|
//*
|
|
|
|
//The node pubkey of the intermediate or final node that generated the failure
|
|
|
|
//message.
|
2019-03-14 18:31:39 +03:00
|
|
|
FailureSourcePubkey []byte `protobuf:"bytes,2,opt,name=failure_source_pubkey,json=failureSourcePubkey,proto3" json:"failure_source_pubkey,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-03-14 18:31:39 +03:00
|
|
|
Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
|
|
|
|
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-05-15 16:07:30 +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 *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) GetFailureSourcePubkey() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.FailureSourcePubkey
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
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-05-15 16:07:30 +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 *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) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{8}
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
|
|
|
return fileDescriptor_7a0613f69d37b0a5, []int{9}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
func init() {
|
2019-05-15 16:07:30 +03:00
|
|
|
proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value)
|
2018-10-23 07:43:47 +03:00
|
|
|
proto.RegisterType((*PaymentRequest)(nil), "routerrpc.PaymentRequest")
|
|
|
|
proto.RegisterType((*PaymentResponse)(nil), "routerrpc.PaymentResponse")
|
|
|
|
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-15 16:07:30 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
|
|
|
|
|
|
|
|
var fileDescriptor_7a0613f69d37b0a5 = []byte{
|
2019-05-10 19:00:15 +03:00
|
|
|
// 1271 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0xdd, 0x72, 0x1a, 0x37,
|
|
|
|
0x14, 0x2e, 0xf1, 0x0f, 0x70, 0x00, 0xb3, 0x96, 0xed, 0x04, 0xe3, 0x38, 0x71, 0xb6, 0x6d, 0xea,
|
|
|
|
0xc9, 0x74, 0xec, 0x29, 0x9d, 0xe4, 0xb2, 0x1d, 0x02, 0xa2, 0xde, 0x09, 0xec, 0x52, 0x01, 0x4e,
|
|
|
|
0xdc, 0x5e, 0x68, 0x64, 0x56, 0x86, 0xad, 0xd9, 0x1f, 0x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eb, 0xd3, 0x59, 0xe0, 0x9e, 0xaa, 0x07, 0xf6,
|
|
|
|
0x74, 0x61, 0xee, 0x72, 0x53, 0x7d, 0x9b, 0x7d, 0xff, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01,
|
|
|
|
0xde, 0xa4, 0x83, 0xcb, 0x09, 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
|
|
|
|
//PaymentRequest to the final destination. If we are unable to route the
|
|
|
|
//payment, or cannot find a route that satisfies the constraints in the
|
|
|
|
//PaymentRequest, then an error will be returned. Otherwise, the payment
|
|
|
|
//pre-image, along with the final route will be returned.
|
2018-10-23 07:43:47 +03:00
|
|
|
SendPayment(ctx context.Context, in *PaymentRequest, opts ...grpc.CallOption) (*PaymentResponse, 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)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type routerClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRouterClient(cc *grpc.ClientConn) RouterClient {
|
|
|
|
return &routerClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *routerClient) SendPayment(ctx context.Context, in *PaymentRequest, opts ...grpc.CallOption) (*PaymentResponse, error) {
|
|
|
|
out := new(PaymentResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/routerrpc.Router/SendPayment", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
//PaymentRequest to the final destination. If we are unable to route the
|
|
|
|
//payment, or cannot find a route that satisfies the constraints in the
|
|
|
|
//PaymentRequest, then an error will be returned. Otherwise, the payment
|
|
|
|
//pre-image, along with the final route will be returned.
|
2018-10-23 07:43:47 +03:00
|
|
|
SendPayment(context.Context, *PaymentRequest) (*PaymentResponse, 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)
|
2018-10-23 07:43:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterRouterServer(s *grpc.Server, srv RouterServer) {
|
|
|
|
s.RegisterService(&_Router_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Router_SendPayment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PaymentRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RouterServer).SendPayment(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/routerrpc.Router/SendPayment",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RouterServer).SendPayment(ctx, req.(*PaymentRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2018-10-23 07:43:47 +03:00
|
|
|
var _Router_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "routerrpc.Router",
|
|
|
|
HandlerType: (*RouterServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "SendPayment",
|
|
|
|
Handler: _Router_SendPayment_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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,
|
|
|
|
},
|
2018-10-23 07:43:47 +03:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "routerrpc/router.proto",
|
|
|
|
}
|