routerrpc+lnrpc: move htlc failure messages
In a later commit, htlc raw failure messages will be exposed through the main rpc. This is a preparation for that.
This commit is contained in:
5 files changed
+1374
-1377
No files matched your search
+104
-535
@@ -79,112 +79,6 @@ func (PaymentState) EnumDescriptor() ([]byte, []int) {
|
|||||||
return fileDescriptor_7a0613f69d37b0a5, []int{0}
|
return fileDescriptor_7a0613f69d37b0a5, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Failure_FailureCode int32
|
|
||||||
|
|
||||||
const (
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
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
|
|
||||||
Failure_EXPIRY_TOO_FAR Failure_FailureCode = 22
|
|
||||||
Failure_MPP_TIMEOUT Failure_FailureCode = 23
|
|
||||||
//*
|
|
||||||
//The error source is known, but the failure itself couldn't be decoded.
|
|
||||||
Failure_UNKNOWN_FAILURE Failure_FailureCode = 998
|
|
||||||
//*
|
|
||||||
//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
|
|
||||||
)
|
|
||||||
|
|
||||||
var Failure_FailureCode_name = map[int32]string{
|
|
||||||
0: "RESERVED",
|
|
||||||
1: "INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",
|
|
||||||
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",
|
|
||||||
22: "EXPIRY_TOO_FAR",
|
|
||||||
23: "MPP_TIMEOUT",
|
|
||||||
998: "UNKNOWN_FAILURE",
|
|
||||||
999: "UNREADABLE_FAILURE",
|
|
||||||
}
|
|
||||||
|
|
||||||
var Failure_FailureCode_value = map[string]int32{
|
|
||||||
"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,
|
|
||||||
"EXPIRY_TOO_FAR": 22,
|
|
||||||
"MPP_TIMEOUT": 23,
|
|
||||||
"UNKNOWN_FAILURE": 998,
|
|
||||||
"UNREADABLE_FAILURE": 999,
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x Failure_FailureCode) String() string {
|
|
||||||
return proto.EnumName(Failure_FailureCode_name, int32(x))
|
|
||||||
}
|
|
||||||
|
|
||||||
func (Failure_FailureCode) EnumDescriptor() ([]byte, []int) {
|
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{7, 0}
|
|
||||||
}
|
|
||||||
|
|
||||||
type SendPaymentRequest struct {
|
type SendPaymentRequest struct {
|
||||||
/// The identity pubkey of the payment recipient
|
/// The identity pubkey of the payment recipient
|
||||||
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
Dest []byte `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
|
||||||
@@ -675,10 +569,10 @@ type SendToRouteResponse struct {
|
|||||||
/// The preimage obtained by making the payment.
|
/// The preimage obtained by making the payment.
|
||||||
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
||||||
/// The failure message in case the payment failed.
|
/// The failure message in case the payment failed.
|
||||||
Failure *Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
|
Failure *lnrpc.Failure `protobuf:"bytes,2,opt,name=failure,proto3" json:"failure,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *SendToRouteResponse) Reset() { *m = SendToRouteResponse{} }
|
func (m *SendToRouteResponse) Reset() { *m = SendToRouteResponse{} }
|
||||||
@@ -713,290 +607,13 @@ func (m *SendToRouteResponse) GetPreimage() []byte {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *SendToRouteResponse) GetFailure() *Failure {
|
func (m *SendToRouteResponse) GetFailure() *lnrpc.Failure {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Failure
|
return m.Failure
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type Failure struct {
|
|
||||||
/// Failure code as defined in the Lightning spec
|
|
||||||
Code Failure_FailureCode `protobuf:"varint,1,opt,name=code,proto3,enum=routerrpc.Failure_FailureCode" json:"code,omitempty"`
|
|
||||||
/// An optional channel update message.
|
|
||||||
ChannelUpdate *ChannelUpdate `protobuf:"bytes,3,opt,name=channel_update,json=channelUpdate,proto3" json:"channel_update,omitempty"`
|
|
||||||
/// A failure type-dependent htlc value.
|
|
||||||
HtlcMsat uint64 `protobuf:"varint,4,opt,name=htlc_msat,json=htlcMsat,proto3" json:"htlc_msat,omitempty"`
|
|
||||||
/// The sha256 sum of the onion payload.
|
|
||||||
OnionSha_256 []byte `protobuf:"bytes,5,opt,name=onion_sha_256,json=onionSha256,proto3" json:"onion_sha_256,omitempty"`
|
|
||||||
/// A failure type-dependent cltv expiry value.
|
|
||||||
CltvExpiry uint32 `protobuf:"varint,6,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
|
|
||||||
/// A failure type-dependent flags value.
|
|
||||||
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.
|
|
||||||
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"`
|
|
||||||
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) {
|
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{7}
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
func (m *Failure) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_Failure.Merge(m, src)
|
|
||||||
}
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Failure) GetFailureSourceIndex() uint32 {
|
|
||||||
if m != nil {
|
|
||||||
return m.FailureSourceIndex
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Failure) GetHeight() uint32 {
|
|
||||||
if m != nil {
|
|
||||||
return m.Height
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChannelUpdate struct {
|
|
||||||
//*
|
|
||||||
//The signature that validates the announced data and proves the ownership
|
|
||||||
//of node id.
|
|
||||||
Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
ChainHash []byte `protobuf:"bytes,2,opt,name=chain_hash,json=chainHash,proto3" json:"chain_hash,omitempty"`
|
|
||||||
//*
|
|
||||||
//The unique description of the funding transaction.
|
|
||||||
ChanId uint64 `protobuf:"varint,3,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"`
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
Timestamp uint32 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
||||||
//*
|
|
||||||
//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"`
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
ChannelFlags uint32 `protobuf:"varint,5,opt,name=channel_flags,json=channelFlags,proto3" json:"channel_flags,omitempty"`
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
TimeLockDelta uint32 `protobuf:"varint,6,opt,name=time_lock_delta,json=timeLockDelta,proto3" json:"time_lock_delta,omitempty"`
|
|
||||||
//*
|
|
||||||
//The minimum HTLC value which will be accepted.
|
|
||||||
HtlcMinimumMsat uint64 `protobuf:"varint,7,opt,name=htlc_minimum_msat,json=htlcMinimumMsat,proto3" json:"htlc_minimum_msat,omitempty"`
|
|
||||||
//*
|
|
||||||
//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.
|
|
||||||
BaseFee uint32 `protobuf:"varint,8,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"`
|
|
||||||
//*
|
|
||||||
//The fee rate that will be charged per millionth of a satoshi.
|
|
||||||
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"`
|
|
||||||
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) {
|
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{8}
|
|
||||||
}
|
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
func (m *ChannelUpdate) XXX_Merge(src proto.Message) {
|
|
||||||
xxx_messageInfo_ChannelUpdate.Merge(m, src)
|
|
||||||
}
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *ChannelUpdate) GetMessageFlags() uint32 {
|
|
||||||
if m != nil {
|
|
||||||
return m.MessageFlags
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
type ResetMissionControlRequest struct {
|
type ResetMissionControlRequest struct {
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
@@ -1007,7 +624,7 @@ func (m *ResetMissionControlRequest) Reset() { *m = ResetMissionControlR
|
|||||||
func (m *ResetMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ResetMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ResetMissionControlRequest) ProtoMessage() {}
|
func (*ResetMissionControlRequest) ProtoMessage() {}
|
||||||
func (*ResetMissionControlRequest) Descriptor() ([]byte, []int) {
|
func (*ResetMissionControlRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{9}
|
return fileDescriptor_7a0613f69d37b0a5, []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ResetMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ResetMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1038,7 +655,7 @@ func (m *ResetMissionControlResponse) Reset() { *m = ResetMissionControl
|
|||||||
func (m *ResetMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ResetMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ResetMissionControlResponse) ProtoMessage() {}
|
func (*ResetMissionControlResponse) ProtoMessage() {}
|
||||||
func (*ResetMissionControlResponse) Descriptor() ([]byte, []int) {
|
func (*ResetMissionControlResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{10}
|
return fileDescriptor_7a0613f69d37b0a5, []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ResetMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ResetMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1069,7 +686,7 @@ func (m *QueryMissionControlRequest) Reset() { *m = QueryMissionControlR
|
|||||||
func (m *QueryMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
func (m *QueryMissionControlRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QueryMissionControlRequest) ProtoMessage() {}
|
func (*QueryMissionControlRequest) ProtoMessage() {}
|
||||||
func (*QueryMissionControlRequest) Descriptor() ([]byte, []int) {
|
func (*QueryMissionControlRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{11}
|
return fileDescriptor_7a0613f69d37b0a5, []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
func (m *QueryMissionControlRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1103,7 +720,7 @@ func (m *QueryMissionControlResponse) Reset() { *m = QueryMissionControl
|
|||||||
func (m *QueryMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
func (m *QueryMissionControlResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QueryMissionControlResponse) ProtoMessage() {}
|
func (*QueryMissionControlResponse) ProtoMessage() {}
|
||||||
func (*QueryMissionControlResponse) Descriptor() ([]byte, []int) {
|
func (*QueryMissionControlResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{12}
|
return fileDescriptor_7a0613f69d37b0a5, []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
func (m *QueryMissionControlResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1147,7 +764,7 @@ func (m *PairHistory) Reset() { *m = PairHistory{} }
|
|||||||
func (m *PairHistory) String() string { return proto.CompactTextString(m) }
|
func (m *PairHistory) String() string { return proto.CompactTextString(m) }
|
||||||
func (*PairHistory) ProtoMessage() {}
|
func (*PairHistory) ProtoMessage() {}
|
||||||
func (*PairHistory) Descriptor() ([]byte, []int) {
|
func (*PairHistory) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{13}
|
return fileDescriptor_7a0613f69d37b0a5, []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PairHistory) XXX_Unmarshal(b []byte) error {
|
func (m *PairHistory) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1215,7 +832,7 @@ func (m *PairData) Reset() { *m = PairData{} }
|
|||||||
func (m *PairData) String() string { return proto.CompactTextString(m) }
|
func (m *PairData) String() string { return proto.CompactTextString(m) }
|
||||||
func (*PairData) ProtoMessage() {}
|
func (*PairData) ProtoMessage() {}
|
||||||
func (*PairData) Descriptor() ([]byte, []int) {
|
func (*PairData) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{14}
|
return fileDescriptor_7a0613f69d37b0a5, []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *PairData) XXX_Unmarshal(b []byte) error {
|
func (m *PairData) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1294,7 +911,7 @@ func (m *QueryProbabilityRequest) Reset() { *m = QueryProbabilityRequest
|
|||||||
func (m *QueryProbabilityRequest) String() string { return proto.CompactTextString(m) }
|
func (m *QueryProbabilityRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QueryProbabilityRequest) ProtoMessage() {}
|
func (*QueryProbabilityRequest) ProtoMessage() {}
|
||||||
func (*QueryProbabilityRequest) Descriptor() ([]byte, []int) {
|
func (*QueryProbabilityRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{15}
|
return fileDescriptor_7a0613f69d37b0a5, []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryProbabilityRequest) XXX_Unmarshal(b []byte) error {
|
func (m *QueryProbabilityRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1350,7 +967,7 @@ func (m *QueryProbabilityResponse) Reset() { *m = QueryProbabilityRespon
|
|||||||
func (m *QueryProbabilityResponse) String() string { return proto.CompactTextString(m) }
|
func (m *QueryProbabilityResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*QueryProbabilityResponse) ProtoMessage() {}
|
func (*QueryProbabilityResponse) ProtoMessage() {}
|
||||||
func (*QueryProbabilityResponse) Descriptor() ([]byte, []int) {
|
func (*QueryProbabilityResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{16}
|
return fileDescriptor_7a0613f69d37b0a5, []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *QueryProbabilityResponse) XXX_Unmarshal(b []byte) error {
|
func (m *QueryProbabilityResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1411,7 +1028,7 @@ func (m *BuildRouteRequest) Reset() { *m = BuildRouteRequest{} }
|
|||||||
func (m *BuildRouteRequest) String() string { return proto.CompactTextString(m) }
|
func (m *BuildRouteRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BuildRouteRequest) ProtoMessage() {}
|
func (*BuildRouteRequest) ProtoMessage() {}
|
||||||
func (*BuildRouteRequest) Descriptor() ([]byte, []int) {
|
func (*BuildRouteRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{17}
|
return fileDescriptor_7a0613f69d37b0a5, []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *BuildRouteRequest) XXX_Unmarshal(b []byte) error {
|
func (m *BuildRouteRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1473,7 +1090,7 @@ func (m *BuildRouteResponse) Reset() { *m = BuildRouteResponse{} }
|
|||||||
func (m *BuildRouteResponse) String() string { return proto.CompactTextString(m) }
|
func (m *BuildRouteResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*BuildRouteResponse) ProtoMessage() {}
|
func (*BuildRouteResponse) ProtoMessage() {}
|
||||||
func (*BuildRouteResponse) Descriptor() ([]byte, []int) {
|
func (*BuildRouteResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_7a0613f69d37b0a5, []int{18}
|
return fileDescriptor_7a0613f69d37b0a5, []int{16}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *BuildRouteResponse) XXX_Unmarshal(b []byte) error {
|
func (m *BuildRouteResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@@ -1503,7 +1120,6 @@ func (m *BuildRouteResponse) GetRoute() *lnrpc.Route {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterEnum("routerrpc.PaymentState", PaymentState_name, PaymentState_value)
|
proto.RegisterEnum("routerrpc.PaymentState", PaymentState_name, PaymentState_value)
|
||||||
proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value)
|
|
||||||
proto.RegisterType((*SendPaymentRequest)(nil), "routerrpc.SendPaymentRequest")
|
proto.RegisterType((*SendPaymentRequest)(nil), "routerrpc.SendPaymentRequest")
|
||||||
proto.RegisterMapType((map[uint64][]byte)(nil), "routerrpc.SendPaymentRequest.DestCustomRecordsEntry")
|
proto.RegisterMapType((map[uint64][]byte)(nil), "routerrpc.SendPaymentRequest.DestCustomRecordsEntry")
|
||||||
proto.RegisterType((*TrackPaymentRequest)(nil), "routerrpc.TrackPaymentRequest")
|
proto.RegisterType((*TrackPaymentRequest)(nil), "routerrpc.TrackPaymentRequest")
|
||||||
@@ -1512,8 +1128,6 @@ func init() {
|
|||||||
proto.RegisterType((*RouteFeeResponse)(nil), "routerrpc.RouteFeeResponse")
|
proto.RegisterType((*RouteFeeResponse)(nil), "routerrpc.RouteFeeResponse")
|
||||||
proto.RegisterType((*SendToRouteRequest)(nil), "routerrpc.SendToRouteRequest")
|
proto.RegisterType((*SendToRouteRequest)(nil), "routerrpc.SendToRouteRequest")
|
||||||
proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse")
|
proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse")
|
||||||
proto.RegisterType((*Failure)(nil), "routerrpc.Failure")
|
|
||||||
proto.RegisterType((*ChannelUpdate)(nil), "routerrpc.ChannelUpdate")
|
|
||||||
proto.RegisterType((*ResetMissionControlRequest)(nil), "routerrpc.ResetMissionControlRequest")
|
proto.RegisterType((*ResetMissionControlRequest)(nil), "routerrpc.ResetMissionControlRequest")
|
||||||
proto.RegisterType((*ResetMissionControlResponse)(nil), "routerrpc.ResetMissionControlResponse")
|
proto.RegisterType((*ResetMissionControlResponse)(nil), "routerrpc.ResetMissionControlResponse")
|
||||||
proto.RegisterType((*QueryMissionControlRequest)(nil), "routerrpc.QueryMissionControlRequest")
|
proto.RegisterType((*QueryMissionControlRequest)(nil), "routerrpc.QueryMissionControlRequest")
|
||||||
@@ -1529,140 +1143,95 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
|
func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) }
|
||||||
|
|
||||||
var fileDescriptor_7a0613f69d37b0a5 = []byte{
|
var fileDescriptor_7a0613f69d37b0a5 = []byte{
|
||||||
// 2126 bytes of a gzipped FileDescriptorProto
|
// 1404 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xcd, 0x76, 0xdb, 0xc6,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xdb, 0x52, 0xdb, 0xd6,
|
||||||
0x15, 0x0e, 0xc4, 0x5f, 0x5d, 0xfe, 0x41, 0x23, 0x45, 0xa2, 0x29, 0x2b, 0x61, 0x10, 0xd7, 0xe1,
|
0x1a, 0xde, 0xf2, 0x09, 0xf3, 0xdb, 0x18, 0x65, 0xb1, 0x27, 0xd1, 0x36, 0x21, 0xf1, 0xd6, 0xce,
|
||||||
0xf1, 0x71, 0x24, 0x47, 0x6d, 0x7c, 0x7c, 0xba, 0x68, 0x0f, 0x45, 0x82, 0x11, 0x64, 0x12, 0x94,
|
0x26, 0x9e, 0x4e, 0x02, 0x09, 0xed, 0x74, 0x32, 0xbd, 0xe8, 0x0c, 0xf8, 0x50, 0x4c, 0xcd, 0x21,
|
||||||
0x87, 0xa4, 0x13, 0x37, 0x8b, 0x39, 0x10, 0x39, 0x12, 0x51, 0xe1, 0x87, 0x01, 0x86, 0x8e, 0xf5,
|
0xcb, 0xe6, 0xa2, 0xcd, 0x85, 0x46, 0x58, 0xcb, 0x58, 0x45, 0xd2, 0x72, 0xb5, 0x96, 0x92, 0xe1,
|
||||||
0x02, 0x5d, 0xf4, 0x45, 0xda, 0x4d, 0xbb, 0xe9, 0xba, 0xaf, 0xd3, 0xf6, 0x11, 0xba, 0xec, 0x99,
|
0x15, 0xfa, 0x22, 0xed, 0x4d, 0xfb, 0x5c, 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0xc2, 0xf2, 0x03, 0xbd, 0x80, 0xbd,
|
0xe5, 0x82, 0x59, 0x3c, 0x29, 0x94, 0x8b, 0x66, 0xe9, 0xa4, 0x50, 0x2e, 0x99, 0x6b, 0xf6, 0x9f,
|
||||||
0xe8, 0x0e, 0x48, 0xe8, 0xcf, 0x83, 0x31, 0x25, 0xb6, 0x37, 0xa1, 0x1f, 0x44, 0xfe, 0x2b, 0x61,
|
0x06, 0x94, 0x53, 0xb6, 0x88, 0x44, 0x3c, 0xa9, 0x23, 0xfa, 0x42, 0x37, 0x53, 0x59, 0x00, 0x43,
|
||||||
0x14, 0xc9, 0x06, 0x42, 0x64, 0x70, 0x09, 0xda, 0x87, 0xec, 0x94, 0xda, 0x37, 0x53, 0x99, 0xd3,
|
0x3f, 0x24, 0xa8, 0x01, 0x55, 0x29, 0x9c, 0x6f, 0x51, 0x10, 0xd8, 0xa1, 0x6c, 0x53, 0xb9, 0xcf,
|
||||||
0x4a, 0x38, 0xfa, 0xd2, 0xfe, 0x99, 0x81, 0x42, 0xe2, 0x62, 0x50, 0x11, 0xf2, 0x58, 0x1f, 0xe8,
|
0x53, 0x86, 0xec, 0xc7, 0x82, 0xde, 0xe7, 0x8a, 0x92, 0x9e, 0x24, 0x96, 0x8c, 0x46, 0x84, 0x31,
|
||||||
0xf8, 0xad, 0xde, 0x56, 0x3f, 0x41, 0x0d, 0x78, 0x62, 0x98, 0xad, 0x3e, 0xc6, 0x7a, 0x6b, 0x48,
|
0xe5, 0xa5, 0xa8, 0x28, 0x1a, 0x93, 0x8e, 0x76, 0x61, 0x33, 0xa5, 0xa4, 0xbe, 0x4a, 0xaa, 0x5f,
|
||||||
0xfa, 0x98, 0x8c, 0xcc, 0xd7, 0x66, 0xff, 0x7b, 0x93, 0x5c, 0x36, 0xdf, 0xf5, 0x74, 0x73, 0x48,
|
0x35, 0xac, 0xdd, 0x35, 0xc1, 0xcc, 0xf2, 0xc2, 0xd9, 0x05, 0xa9, 0xcd, 0x88, 0xc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0xb5, 0xcf, 0x79, 0x59, 0x7d, 0x18, 0xe6, 0xbc, 0x3c,
|
||||||
0x6c, 0x4f, 0xa6, 0x37, 0x59, 0x08, 0xb6, 0x05, 0x22, 0x92, 0xdb, 0x21, 0xe4, 0xe2, 0x8e, 0x22,
|
0x74, 0x21, 0x3e, 0x80, 0xb9, 0xb8, 0x09, 0x90, 0xbd, 0xa8, 0x7b, 0x7f, 0x25, 0xd5, 0xff, 0xf7,
|
||||||
0xb5, 0xe8, 0x28, 0xb2, 0x63, 0xd9, 0x49, 0x3c, 0x86, 0x6d, 0x9e, 0x43, 0x43, 0x66, 0xb9, 0x33,
|
0x20, 0x47, 0x1b, 0xef, 0x01, 0xcc, 0xe6, 0x09, 0x3d, 0xcd, 0xa8, 0xdc, 0xdb, 0x07, 0xf5, 0x9d,
|
||||||
0x11, 0xf3, 0x25, 0xbc, 0x04, 0xd0, 0x97, 0x50, 0x72, 0x69, 0x18, 0x5a, 0x37, 0x94, 0xc8, 0xb8,
|
0x15, 0x52, 0x65, 0xea, 0xe8, 0xed, 0x8f, 0xfb, 0xd7, 0x3e, 0x9f, 0x24, 0x57, 0x7b, 0x23, 0x1a,
|
||||||
0x05, 0xc1, 0x28, 0x46, 0x60, 0x47, 0x84, 0xef, 0x97, 0x10, 0xe7, 0x91, 0x88, 0x94, 0x91, 0xa4,
|
0xee, 0x07, 0xfe, 0xf5, 0x84, 0x47, 0x7e, 0x74, 0x1d, 0x11, 0xfe, 0x89, 0xc6, 0x37, 0xfb, 0x41,
|
||||||
0x08, 0x94, 0xa4, 0xf5, 0x14, 0xce, 0xac, 0x28, 0x3d, 0x24, 0x53, 0x38, 0xb3, 0xd0, 0x33, 0xd8,
|
0xe4, 0xed, 0xcb, 0xb1, 0xdc, 0xbf, 0xb3, 0x72, 0x55, 0x92, 0xff, 0xbd, 0x7c, 0xf9, 0x77, 0x00,
|
||||||
0x91, 0x39, 0xc8, 0xf6, 0x6c, 0x77, 0xee, 0xca, 0x5c, 0x94, 0x13, 0xb9, 0xa8, 0x22, 0x72, 0x91,
|
0x00, 0x00, 0xff, 0xff, 0x30, 0x2f, 0x8a, 0x5c, 0xed, 0x0c, 0x00, 0x00,
|
||||||
0xc4, 0x45, 0x4a, 0x7a, 0x04, 0xf9, 0x2b, 0x2b, 0xa4, 0xbc, 0x7a, 0x44, 0xb9, 0x22, 0xc7, 0xbf,
|
|
||||||
0x3b, 0x94, 0x72, 0x11, 0xaf, 0x29, 0x01, 0xcf, 0x82, 0x32, 0x45, 0xe4, 0xae, 0x29, 0xc5, 0xfc,
|
|
||||||
0x2e, 0x17, 0x16, 0xac, 0x0f, 0x4b, 0x0b, 0x85, 0x84, 0x05, 0x89, 0x0b, 0x0b, 0xcf, 0x60, 0x87,
|
|
||||||
0x7e, 0x60, 0x81, 0x45, 0xfc, 0x99, 0xf5, 0xd3, 0x9c, 0x92, 0x89, 0xc5, 0x2c, 0xd1, 0xa2, 0x16,
|
|
||||||
0x71, 0x45, 0x08, 0xfa, 0x02, 0x6f, 0x5b, 0xcc, 0xd2, 0x1e, 0x43, 0x0d, 0xd3, 0x90, 0xb2, 0x9e,
|
|
||||||
0x1d, 0x86, 0xb6, 0xef, 0xb5, 0x7c, 0x8f, 0x05, 0xbe, 0x13, 0x15, 0x21, 0xed, 0x08, 0x0e, 0x37,
|
|
||||||
0x4a, 0x65, 0x15, 0xe1, 0x8b, 0xdf, 0xcc, 0x69, 0x70, 0xb7, 0x79, 0xf1, 0x1b, 0x38, 0xdc, 0x28,
|
|
||||||
0x8d, 0x4a, 0xd0, 0x73, 0xc8, 0xcc, 0x2c, 0x3b, 0x08, 0xab, 0x5b, 0xa2, 0x8c, 0xef, 0xaf, 0x74,
|
|
||||||
0x0d, 0x76, 0x70, 0x6e, 0x87, 0xcc, 0x0f, 0xee, 0xb0, 0x24, 0x5d, 0xa4, 0xf3, 0x8a, 0xba, 0xa5,
|
|
||||||
0xfd, 0x59, 0x81, 0x42, 0x42, 0xc8, 0x73, 0xbf, 0xe7, 0x4f, 0x28, 0xb9, 0x0e, 0x7c, 0x37, 0xae,
|
|
||||||
0x63, 0x1c, 0xe8, 0x04, 0xbe, 0xcb, 0xcb, 0xba, 0x10, 0x32, 0x3f, 0x7a, 0x5d, 0x59, 0xfe, 0x39,
|
|
||||||
0xf4, 0xd1, 0xd7, 0x90, 0x9b, 0x4a, 0x05, 0xc2, 0x47, 0x85, 0xd3, 0xdd, 0x35, 0xdb, 0xfc, 0x66,
|
|
||||||
0x70, 0xcc, 0xb9, 0x48, 0xe7, 0x53, 0x6a, 0xfa, 0x22, 0x9d, 0x4f, 0xab, 0x99, 0x8b, 0x74, 0x3e,
|
|
||||||
0xa3, 0x66, 0x2f, 0xd2, 0xf9, 0xac, 0x9a, 0xd3, 0xfe, 0xa3, 0x40, 0x3e, 0x66, 0xf3, 0x9d, 0xf0,
|
|
||||||
0x8c, 0x4f, 0xf8, 0xbb, 0x88, 0xfa, 0x81, 0x3c, 0x07, 0x86, 0xb6, 0x4b, 0x51, 0x1d, 0x8a, 0x42,
|
|
||||||
0xb8, 0xda, 0x65, 0x00, 0xc7, 0x9a, 0xa2, 0xd3, 0x10, 0x2d, 0x79, 0xcc, 0x58, 0x14, 0x32, 0xde,
|
|
||||||
0x92, 0x4b, 0x4a, 0x3c, 0x55, 0x84, 0xf3, 0xf1, 0x98, 0x86, 0xa1, 0xb4, 0x92, 0x91, 0x94, 0x08,
|
|
||||||
0x13, 0x86, 0x9e, 0x42, 0x25, 0xa6, 0xc4, 0xb6, 0xb2, 0xb2, 0xe5, 0x88, 0xe0, 0xc8, 0x5c, 0x03,
|
|
||||||
0xd4, 0x24, 0xcf, 0x5d, 0x0e, 0x01, 0xe5, 0x25, 0x91, 0x1b, 0x95, 0x87, 0xd7, 0xfe, 0x08, 0x07,
|
|
||||||
0xc2, 0x95, 0x97, 0x81, 0x7f, 0x65, 0x5d, 0xd9, 0x8e, 0xcd, 0xee, 0xe2, 0x3e, 0x85, 0x1f, 0x3c,
|
|
||||||
0x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5, 0xa3, 0x07, 0xa4, 0x52, 0xd5, 0xd9, 0x37, 0x7f, 0x38, 0xb9, 0xb1, 0xd9, 0x74, 0x7e, 0x75,
|
|
||||||
0x3c, 0xf6, 0xdd, 0x13, 0x87, 0xf7, 0xf4, 0x9e, 0xed, 0xdd, 0x78, 0x94, 0xfd, 0xec, 0x07, 0xb7,
|
|
||||||
0x27, 0x8e, 0x37, 0x39, 0x11, 0x61, 0x79, 0xb2, 0xd0, 0x72, 0x95, 0x15, 0xff, 0x80, 0xfa, 0xf5,
|
|
||||||
0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x77, 0x3e, 0x21, 0x8e, 0xb0, 0x12, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference imports to suppress errors if they are not otherwise used.
|
// Reference imports to suppress errors if they are not otherwise used.
|
||||||
|
|||||||
@@ -222,167 +222,9 @@ message SendToRouteResponse {
|
|||||||
bytes preimage = 1;
|
bytes preimage = 1;
|
||||||
|
|
||||||
/// The failure message in case the payment failed.
|
/// The failure message in case the payment failed.
|
||||||
Failure failure = 2;
|
lnrpc.Failure failure = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Failure {
|
|
||||||
enum FailureCode {
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
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;
|
|
||||||
EXPIRY_TOO_FAR = 22;
|
|
||||||
MPP_TIMEOUT = 23;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The error source is known, but the failure itself couldn't be decoded.
|
|
||||||
*/
|
|
||||||
UNKNOWN_FAILURE = 998;
|
|
||||||
|
|
||||||
/**
|
|
||||||
An unreadable failure result is returned if the received failure message
|
|
||||||
cannot be decrypted. In that case the error source is unknown.
|
|
||||||
*/
|
|
||||||
UNREADABLE_FAILURE = 999;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Failure code as defined in the Lightning spec
|
|
||||||
FailureCode code = 1;
|
|
||||||
|
|
||||||
reserved 2;
|
|
||||||
|
|
||||||
/// An optional channel update message.
|
|
||||||
ChannelUpdate channel_update = 3;
|
|
||||||
|
|
||||||
/// A failure type-dependent htlc value.
|
|
||||||
uint64 htlc_msat = 4;
|
|
||||||
|
|
||||||
/// The sha256 sum of the onion payload.
|
|
||||||
bytes onion_sha_256 = 5;
|
|
||||||
|
|
||||||
/// A failure type-dependent cltv expiry value.
|
|
||||||
uint32 cltv_expiry = 6;
|
|
||||||
|
|
||||||
/// A failure type-dependent flags value.
|
|
||||||
uint32 flags = 7;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The position in the path of the intermediate or final node that generated
|
|
||||||
the failure message. Position zero is the sender node.
|
|
||||||
**/
|
|
||||||
uint32 failure_source_index = 8;
|
|
||||||
|
|
||||||
/// A failure type-dependent block height.
|
|
||||||
uint32 height = 9;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message ChannelUpdate {
|
|
||||||
/**
|
|
||||||
The signature that validates the announced data and proves the ownership
|
|
||||||
of node id.
|
|
||||||
*/
|
|
||||||
bytes signature = 1;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
bytes chain_hash = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The unique description of the funding transaction.
|
|
||||||
*/
|
|
||||||
uint64 chan_id = 3 [jstype = JS_STRING];
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
uint32 timestamp = 4;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
uint32 message_flags = 10;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
uint32 channel_flags = 5;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
uint32 time_lock_delta = 6;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The minimum HTLC value which will be accepted.
|
|
||||||
*/
|
|
||||||
uint64 htlc_minimum_msat = 7;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
uint32 base_fee = 8;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The fee rate that will be charged per millionth of a satoshi.
|
|
||||||
*/
|
|
||||||
uint32 fee_rate = 9;
|
|
||||||
|
|
||||||
/**
|
|
||||||
The maximum HTLC value which will be accepted.
|
|
||||||
*/
|
|
||||||
uint64 htlc_maximum_msat = 11;
|
|
||||||
|
|
||||||
/**
|
|
||||||
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.
|
|
||||||
*/
|
|
||||||
bytes extra_opaque_data = 12;
|
|
||||||
}
|
|
||||||
message ResetMissionControlRequest {
|
message ResetMissionControlRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -318,11 +318,11 @@ func (s *Server) SendToRoute(ctx context.Context,
|
|||||||
// Because of difficulties with using protobuf oneof constructs in some
|
// Because of difficulties with using protobuf oneof constructs in some
|
||||||
// languages, the decision was made here to use a single message format for all
|
// languages, the decision was made here to use a single message format for all
|
||||||
// failure messages with some fields left empty depending on the failure type.
|
// failure messages with some fields left empty depending on the failure type.
|
||||||
func marshallError(sendError error) (*Failure, error) {
|
func marshallError(sendError error) (*lnrpc.Failure, error) {
|
||||||
response := &Failure{}
|
response := &lnrpc.Failure{}
|
||||||
|
|
||||||
if sendError == htlcswitch.ErrUnreadableFailureMessage {
|
if sendError == htlcswitch.ErrUnreadableFailureMessage {
|
||||||
response.Code = Failure_UNREADABLE_FAILURE
|
response.Code = lnrpc.Failure_UNREADABLE_FAILURE
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -334,92 +334,92 @@ func marshallError(sendError error) (*Failure, error) {
|
|||||||
switch onionErr := rtErr.WireMessage().(type) {
|
switch onionErr := rtErr.WireMessage().(type) {
|
||||||
|
|
||||||
case *lnwire.FailIncorrectDetails:
|
case *lnwire.FailIncorrectDetails:
|
||||||
response.Code = Failure_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
|
response.Code = lnrpc.Failure_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS
|
||||||
response.Height = onionErr.Height()
|
response.Height = onionErr.Height()
|
||||||
|
|
||||||
case *lnwire.FailIncorrectPaymentAmount:
|
case *lnwire.FailIncorrectPaymentAmount:
|
||||||
response.Code = Failure_INCORRECT_PAYMENT_AMOUNT
|
response.Code = lnrpc.Failure_INCORRECT_PAYMENT_AMOUNT
|
||||||
|
|
||||||
case *lnwire.FailFinalIncorrectCltvExpiry:
|
case *lnwire.FailFinalIncorrectCltvExpiry:
|
||||||
response.Code = Failure_FINAL_INCORRECT_CLTV_EXPIRY
|
response.Code = lnrpc.Failure_FINAL_INCORRECT_CLTV_EXPIRY
|
||||||
response.CltvExpiry = onionErr.CltvExpiry
|
response.CltvExpiry = onionErr.CltvExpiry
|
||||||
|
|
||||||
case *lnwire.FailFinalIncorrectHtlcAmount:
|
case *lnwire.FailFinalIncorrectHtlcAmount:
|
||||||
response.Code = Failure_FINAL_INCORRECT_HTLC_AMOUNT
|
response.Code = lnrpc.Failure_FINAL_INCORRECT_HTLC_AMOUNT
|
||||||
response.HtlcMsat = uint64(onionErr.IncomingHTLCAmount)
|
response.HtlcMsat = uint64(onionErr.IncomingHTLCAmount)
|
||||||
|
|
||||||
case *lnwire.FailFinalExpiryTooSoon:
|
case *lnwire.FailFinalExpiryTooSoon:
|
||||||
response.Code = Failure_FINAL_EXPIRY_TOO_SOON
|
response.Code = lnrpc.Failure_FINAL_EXPIRY_TOO_SOON
|
||||||
|
|
||||||
case *lnwire.FailInvalidRealm:
|
case *lnwire.FailInvalidRealm:
|
||||||
response.Code = Failure_INVALID_REALM
|
response.Code = lnrpc.Failure_INVALID_REALM
|
||||||
|
|
||||||
case *lnwire.FailExpiryTooSoon:
|
case *lnwire.FailExpiryTooSoon:
|
||||||
response.Code = Failure_EXPIRY_TOO_SOON
|
response.Code = lnrpc.Failure_EXPIRY_TOO_SOON
|
||||||
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
||||||
|
|
||||||
case *lnwire.FailExpiryTooFar:
|
case *lnwire.FailExpiryTooFar:
|
||||||
response.Code = Failure_EXPIRY_TOO_FAR
|
response.Code = lnrpc.Failure_EXPIRY_TOO_FAR
|
||||||
|
|
||||||
case *lnwire.FailInvalidOnionVersion:
|
case *lnwire.FailInvalidOnionVersion:
|
||||||
response.Code = Failure_INVALID_ONION_VERSION
|
response.Code = lnrpc.Failure_INVALID_ONION_VERSION
|
||||||
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
||||||
|
|
||||||
case *lnwire.FailInvalidOnionHmac:
|
case *lnwire.FailInvalidOnionHmac:
|
||||||
response.Code = Failure_INVALID_ONION_HMAC
|
response.Code = lnrpc.Failure_INVALID_ONION_HMAC
|
||||||
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
||||||
|
|
||||||
case *lnwire.FailInvalidOnionKey:
|
case *lnwire.FailInvalidOnionKey:
|
||||||
response.Code = Failure_INVALID_ONION_KEY
|
response.Code = lnrpc.Failure_INVALID_ONION_KEY
|
||||||
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
response.OnionSha_256 = onionErr.OnionSHA256[:]
|
||||||
|
|
||||||
case *lnwire.FailAmountBelowMinimum:
|
case *lnwire.FailAmountBelowMinimum:
|
||||||
response.Code = Failure_AMOUNT_BELOW_MINIMUM
|
response.Code = lnrpc.Failure_AMOUNT_BELOW_MINIMUM
|
||||||
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
||||||
response.HtlcMsat = uint64(onionErr.HtlcMsat)
|
response.HtlcMsat = uint64(onionErr.HtlcMsat)
|
||||||
|
|
||||||
case *lnwire.FailFeeInsufficient:
|
case *lnwire.FailFeeInsufficient:
|
||||||
response.Code = Failure_FEE_INSUFFICIENT
|
response.Code = lnrpc.Failure_FEE_INSUFFICIENT
|
||||||
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
||||||
response.HtlcMsat = uint64(onionErr.HtlcMsat)
|
response.HtlcMsat = uint64(onionErr.HtlcMsat)
|
||||||
|
|
||||||
case *lnwire.FailIncorrectCltvExpiry:
|
case *lnwire.FailIncorrectCltvExpiry:
|
||||||
response.Code = Failure_INCORRECT_CLTV_EXPIRY
|
response.Code = lnrpc.Failure_INCORRECT_CLTV_EXPIRY
|
||||||
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
||||||
response.CltvExpiry = onionErr.CltvExpiry
|
response.CltvExpiry = onionErr.CltvExpiry
|
||||||
|
|
||||||
case *lnwire.FailChannelDisabled:
|
case *lnwire.FailChannelDisabled:
|
||||||
response.Code = Failure_CHANNEL_DISABLED
|
response.Code = lnrpc.Failure_CHANNEL_DISABLED
|
||||||
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(&onionErr.Update)
|
||||||
response.Flags = uint32(onionErr.Flags)
|
response.Flags = uint32(onionErr.Flags)
|
||||||
|
|
||||||
case *lnwire.FailTemporaryChannelFailure:
|
case *lnwire.FailTemporaryChannelFailure:
|
||||||
response.Code = Failure_TEMPORARY_CHANNEL_FAILURE
|
response.Code = lnrpc.Failure_TEMPORARY_CHANNEL_FAILURE
|
||||||
response.ChannelUpdate = marshallChannelUpdate(onionErr.Update)
|
response.ChannelUpdate = marshallChannelUpdate(onionErr.Update)
|
||||||
|
|
||||||
case *lnwire.FailRequiredNodeFeatureMissing:
|
case *lnwire.FailRequiredNodeFeatureMissing:
|
||||||
response.Code = Failure_REQUIRED_NODE_FEATURE_MISSING
|
response.Code = lnrpc.Failure_REQUIRED_NODE_FEATURE_MISSING
|
||||||
|
|
||||||
case *lnwire.FailRequiredChannelFeatureMissing:
|
case *lnwire.FailRequiredChannelFeatureMissing:
|
||||||
response.Code = Failure_REQUIRED_CHANNEL_FEATURE_MISSING
|
response.Code = lnrpc.Failure_REQUIRED_CHANNEL_FEATURE_MISSING
|
||||||
|
|
||||||
case *lnwire.FailUnknownNextPeer:
|
case *lnwire.FailUnknownNextPeer:
|
||||||
response.Code = Failure_UNKNOWN_NEXT_PEER
|
response.Code = lnrpc.Failure_UNKNOWN_NEXT_PEER
|
||||||
|
|
||||||
case *lnwire.FailTemporaryNodeFailure:
|
case *lnwire.FailTemporaryNodeFailure:
|
||||||
response.Code = Failure_TEMPORARY_NODE_FAILURE
|
response.Code = lnrpc.Failure_TEMPORARY_NODE_FAILURE
|
||||||
|
|
||||||
case *lnwire.FailPermanentNodeFailure:
|
case *lnwire.FailPermanentNodeFailure:
|
||||||
response.Code = Failure_PERMANENT_NODE_FAILURE
|
response.Code = lnrpc.Failure_PERMANENT_NODE_FAILURE
|
||||||
|
|
||||||
case *lnwire.FailPermanentChannelFailure:
|
case *lnwire.FailPermanentChannelFailure:
|
||||||
response.Code = Failure_PERMANENT_CHANNEL_FAILURE
|
response.Code = lnrpc.Failure_PERMANENT_CHANNEL_FAILURE
|
||||||
|
|
||||||
case *lnwire.FailMPPTimeout:
|
case *lnwire.FailMPPTimeout:
|
||||||
response.Code = Failure_MPP_TIMEOUT
|
response.Code = lnrpc.Failure_MPP_TIMEOUT
|
||||||
|
|
||||||
case nil:
|
case nil:
|
||||||
response.Code = Failure_UNKNOWN_FAILURE
|
response.Code = lnrpc.Failure_UNKNOWN_FAILURE
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("cannot marshall failure %T", onionErr)
|
return nil, fmt.Errorf("cannot marshall failure %T", onionErr)
|
||||||
@@ -441,12 +441,12 @@ func marshallError(sendError error) (*Failure, error) {
|
|||||||
|
|
||||||
// marshallChannelUpdate marshalls a channel update as received over the wire to
|
// marshallChannelUpdate marshalls a channel update as received over the wire to
|
||||||
// the router rpc format.
|
// the router rpc format.
|
||||||
func marshallChannelUpdate(update *lnwire.ChannelUpdate) *ChannelUpdate {
|
func marshallChannelUpdate(update *lnwire.ChannelUpdate) *lnrpc.ChannelUpdate {
|
||||||
if update == nil {
|
if update == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return &ChannelUpdate{
|
return &lnrpc.ChannelUpdate{
|
||||||
Signature: update.Signature[:],
|
Signature: update.Signature[:],
|
||||||
ChainHash: update.ChainHash[:],
|
ChainHash: update.ChainHash[:],
|
||||||
ChanId: update.ShortChannelID.ToUint64(),
|
ChanId: update.ShortChannelID.ToUint64(),
|
||||||
|
|||||||
+1080
-654
File diff suppressed because it is too large.
Load diff
+160
@@ -3114,3 +3114,163 @@ message BakeMacaroonResponse {
|
|||||||
/// The hex encoded macaroon, serialized in binary format.
|
/// The hex encoded macaroon, serialized in binary format.
|
||||||
string macaroon = 1;
|
string macaroon = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message Failure {
|
||||||
|
enum FailureCode {
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
EXPIRY_TOO_FAR = 22;
|
||||||
|
MPP_TIMEOUT = 23;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The error source is known, but the failure itself couldn't be decoded.
|
||||||
|
*/
|
||||||
|
UNKNOWN_FAILURE = 998;
|
||||||
|
|
||||||
|
/**
|
||||||
|
An unreadable failure result is returned if the received failure message
|
||||||
|
cannot be decrypted. In that case the error source is unknown.
|
||||||
|
*/
|
||||||
|
UNREADABLE_FAILURE = 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Failure code as defined in the Lightning spec
|
||||||
|
FailureCode code = 1;
|
||||||
|
|
||||||
|
reserved 2;
|
||||||
|
|
||||||
|
/// An optional channel update message.
|
||||||
|
ChannelUpdate channel_update = 3;
|
||||||
|
|
||||||
|
/// A failure type-dependent htlc value.
|
||||||
|
uint64 htlc_msat = 4;
|
||||||
|
|
||||||
|
/// The sha256 sum of the onion payload.
|
||||||
|
bytes onion_sha_256 = 5;
|
||||||
|
|
||||||
|
/// A failure type-dependent cltv expiry value.
|
||||||
|
uint32 cltv_expiry = 6;
|
||||||
|
|
||||||
|
/// A failure type-dependent flags value.
|
||||||
|
uint32 flags = 7;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The position in the path of the intermediate or final node that generated
|
||||||
|
the failure message. Position zero is the sender node.
|
||||||
|
**/
|
||||||
|
uint32 failure_source_index = 8;
|
||||||
|
|
||||||
|
/// A failure type-dependent block height.
|
||||||
|
uint32 height = 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message ChannelUpdate {
|
||||||
|
/**
|
||||||
|
The signature that validates the announced data and proves the ownership
|
||||||
|
of node id.
|
||||||
|
*/
|
||||||
|
bytes signature = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
bytes chain_hash = 2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The unique description of the funding transaction.
|
||||||
|
*/
|
||||||
|
uint64 chan_id = 3 [jstype = JS_STRING];
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
uint32 timestamp = 4;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
uint32 message_flags = 10;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
uint32 channel_flags = 5;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
uint32 time_lock_delta = 6;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The minimum HTLC value which will be accepted.
|
||||||
|
*/
|
||||||
|
uint64 htlc_minimum_msat = 7;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
uint32 base_fee = 8;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The fee rate that will be charged per millionth of a satoshi.
|
||||||
|
*/
|
||||||
|
uint32 fee_rate = 9;
|
||||||
|
|
||||||
|
/**
|
||||||
|
The maximum HTLC value which will be accepted.
|
||||||
|
*/
|
||||||
|
uint64 htlc_maximum_msat = 11;
|
||||||
|
|
||||||
|
/**
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
bytes extra_opaque_data = 12;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user