|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.27.1
|
|
|
|
|
// protoc-gen-go v1.30.0
|
|
|
|
|
// protoc v3.6.1
|
|
|
|
|
// source: lightning.proto
|
|
|
|
|
|
|
|
|
@@ -1826,7 +1826,7 @@ type Transaction struct {
|
|
|
|
|
// Addresses that received funds for this transaction. Deprecated as it is
|
|
|
|
|
// now incorporated in the output_details field.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
DestAddresses []string `protobuf:"bytes,8,rep,name=dest_addresses,json=destAddresses,proto3" json:"dest_addresses,omitempty"`
|
|
|
|
|
// Outputs that received funds for this transaction
|
|
|
|
|
OutputDetails []*OutputDetail `protobuf:"bytes,11,rep,name=output_details,json=outputDetails,proto3" json:"output_details,omitempty"`
|
|
|
|
@@ -1919,7 +1919,7 @@ func (x *Transaction) GetTotalFees() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Transaction) GetDestAddresses() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.DestAddresses
|
|
|
|
@@ -2187,7 +2187,7 @@ type SendRequest struct {
|
|
|
|
|
// The hex-encoded identity pubkey of the payment recipient. Deprecated now
|
|
|
|
|
// that the REST gateway supports base64 encoding of bytes fields.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
DestString string `protobuf:"bytes,2,opt,name=dest_string,json=destString,proto3" json:"dest_string,omitempty"`
|
|
|
|
|
// The amount to send expressed in satoshis.
|
|
|
|
|
//
|
|
|
|
@@ -2203,7 +2203,7 @@ type SendRequest struct {
|
|
|
|
|
// The hex-encoded hash to use within the payment's HTLC. Deprecated now
|
|
|
|
|
// that the REST gateway supports base64 encoding of bytes fields.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
PaymentHashString string `protobuf:"bytes,5,opt,name=payment_hash_string,json=paymentHashString,proto3" json:"payment_hash_string,omitempty"`
|
|
|
|
|
// A bare-bones invoice for a payment within the Lightning Network. With the
|
|
|
|
|
// details of the invoice, the sender has all the data necessary to send a
|
|
|
|
@@ -2284,7 +2284,7 @@ func (x *SendRequest) GetDest() []byte {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *SendRequest) GetDestString() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.DestString
|
|
|
|
@@ -2313,7 +2313,7 @@ func (x *SendRequest) GetPaymentHash() []byte {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *SendRequest) GetPaymentHashString() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PaymentHashString
|
|
|
|
@@ -2473,7 +2473,7 @@ type SendToRouteRequest struct {
|
|
|
|
|
// An optional hex-encoded payment hash to be used for the HTLC. Deprecated now
|
|
|
|
|
// that the REST gateway supports base64 encoding of bytes fields.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
PaymentHashString string `protobuf:"bytes,2,opt,name=payment_hash_string,json=paymentHashString,proto3" json:"payment_hash_string,omitempty"`
|
|
|
|
|
// Route that should be used to attempt to complete the payment.
|
|
|
|
|
Route *Route `protobuf:"bytes,4,opt,name=route,proto3" json:"route,omitempty"`
|
|
|
|
@@ -2518,7 +2518,7 @@ func (x *SendToRouteRequest) GetPaymentHash() []byte {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *SendToRouteRequest) GetPaymentHashString() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PaymentHashString
|
|
|
|
@@ -3239,7 +3239,7 @@ type EstimateFeeResponse struct {
|
|
|
|
|
// Deprecated, use sat_per_vbyte.
|
|
|
|
|
// The fee rate in satoshi/vbyte.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
FeerateSatPerByte int64 `protobuf:"varint,2,opt,name=feerate_sat_per_byte,json=feerateSatPerByte,proto3" json:"feerate_sat_per_byte,omitempty"`
|
|
|
|
|
// The fee rate in satoshi/vbyte.
|
|
|
|
|
SatPerVbyte uint64 `protobuf:"varint,3,opt,name=sat_per_vbyte,json=satPerVbyte,proto3" json:"sat_per_vbyte,omitempty"`
|
|
|
|
@@ -3284,7 +3284,7 @@ func (x *EstimateFeeResponse) GetFeeSat() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *EstimateFeeResponse) GetFeerateSatPerByte() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.FeerateSatPerByte
|
|
|
|
@@ -3316,7 +3316,7 @@ type SendManyRequest struct {
|
|
|
|
|
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
|
|
|
|
// transaction.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
SatPerByte int64 `protobuf:"varint,5,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
|
|
|
|
|
// An optional label for the transaction, limited to 500 characters.
|
|
|
|
|
Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
|
|
|
|
@@ -3380,7 +3380,7 @@ func (x *SendManyRequest) GetSatPerVbyte() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *SendManyRequest) GetSatPerByte() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SatPerByte
|
|
|
|
@@ -3476,7 +3476,7 @@ type SendCoinsRequest struct {
|
|
|
|
|
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
|
|
|
|
// transaction.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
SatPerByte int64 `protobuf:"varint,5,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
|
|
|
|
|
// If set, then the amount field will be ignored, and lnd will attempt to
|
|
|
|
|
// send all the coins under control of the internal wallet to the specified
|
|
|
|
@@ -3551,7 +3551,7 @@ func (x *SendCoinsRequest) GetSatPerVbyte() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *SendCoinsRequest) GetSatPerByte() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SatPerByte
|
|
|
|
@@ -4516,7 +4516,7 @@ type Channel struct {
|
|
|
|
|
// force closed, we will need to wait for this many blocks before we can regain
|
|
|
|
|
// our funds.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
CsvDelay uint32 `protobuf:"varint,16,opt,name=csv_delay,json=csvDelay,proto3" json:"csv_delay,omitempty"`
|
|
|
|
|
// Whether this channel is advertised to the network or not.
|
|
|
|
|
Private bool `protobuf:"varint,17,opt,name=private,proto3" json:"private,omitempty"`
|
|
|
|
@@ -4527,16 +4527,16 @@ type Channel struct {
|
|
|
|
|
// Deprecated. The minimum satoshis this node is required to reserve in its
|
|
|
|
|
// balance.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
LocalChanReserveSat int64 `protobuf:"varint,20,opt,name=local_chan_reserve_sat,json=localChanReserveSat,proto3" json:"local_chan_reserve_sat,omitempty"`
|
|
|
|
|
// Deprecated. The minimum satoshis the other node is required to reserve in
|
|
|
|
|
// its balance.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
RemoteChanReserveSat int64 `protobuf:"varint,21,opt,name=remote_chan_reserve_sat,json=remoteChanReserveSat,proto3" json:"remote_chan_reserve_sat,omitempty"`
|
|
|
|
|
// Deprecated. Use commitment_type.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
StaticRemoteKey bool `protobuf:"varint,22,opt,name=static_remote_key,json=staticRemoteKey,proto3" json:"static_remote_key,omitempty"`
|
|
|
|
|
// The commitment type used by this channel.
|
|
|
|
|
CommitmentType CommitmentType `protobuf:"varint,26,opt,name=commitment_type,json=commitmentType,proto3,enum=lnrpc.CommitmentType" json:"commitment_type,omitempty"`
|
|
|
|
@@ -4722,7 +4722,7 @@ func (x *Channel) GetPendingHtlcs() []*HTLC {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Channel) GetCsvDelay() uint32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CsvDelay
|
|
|
|
@@ -4751,7 +4751,7 @@ func (x *Channel) GetChanStatusFlags() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Channel) GetLocalChanReserveSat() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LocalChanReserveSat
|
|
|
|
@@ -4759,7 +4759,7 @@ func (x *Channel) GetLocalChanReserveSat() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Channel) GetRemoteChanReserveSat() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RemoteChanReserveSat
|
|
|
|
@@ -4767,7 +4767,7 @@ func (x *Channel) GetRemoteChanReserveSat() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Channel) GetStaticRemoteKey() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.StaticRemoteKey
|
|
|
|
@@ -6044,7 +6044,7 @@ type GetInfoResponse struct {
|
|
|
|
|
// Whether the current node is connected to testnet. This field is
|
|
|
|
|
// deprecated and the network field should be used instead
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Testnet bool `protobuf:"varint,10,opt,name=testnet,proto3" json:"testnet,omitempty"`
|
|
|
|
|
// A list of active chains the node is connected to
|
|
|
|
|
Chains []*Chain `protobuf:"bytes,16,rep,name=chains,proto3" json:"chains,omitempty"`
|
|
|
|
@@ -6189,7 +6189,7 @@ func (x *GetInfoResponse) GetSyncedToGraph() bool {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *GetInfoResponse) GetTestnet() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Testnet
|
|
|
|
@@ -6577,7 +6577,7 @@ type CloseChannelRequest struct {
|
|
|
|
|
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
|
|
|
|
// closure transaction.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
SatPerByte int64 `protobuf:"varint,4,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
|
|
|
|
|
// An optional address to send funds to in the case of a cooperative close.
|
|
|
|
|
// If the channel was opened with an upfront shutdown script and this field
|
|
|
|
@@ -6646,7 +6646,7 @@ func (x *CloseChannelRequest) GetTargetConf() int32 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *CloseChannelRequest) GetSatPerByte() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SatPerByte
|
|
|
|
@@ -7175,7 +7175,7 @@ type OpenChannelRequest struct {
|
|
|
|
|
// The hex encoded pubkey of the node to open a channel with. Deprecated now
|
|
|
|
|
// that the REST gateway supports base64 encoding of bytes fields.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
NodePubkeyString string `protobuf:"bytes,3,opt,name=node_pubkey_string,json=nodePubkeyString,proto3" json:"node_pubkey_string,omitempty"`
|
|
|
|
|
// The number of satoshis the wallet should commit to the channel
|
|
|
|
|
LocalFundingAmount int64 `protobuf:"varint,4,opt,name=local_funding_amount,json=localFundingAmount,proto3" json:"local_funding_amount,omitempty"`
|
|
|
|
@@ -7189,7 +7189,7 @@ type OpenChannelRequest struct {
|
|
|
|
|
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
|
|
|
|
// funding transaction.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
SatPerByte int64 `protobuf:"varint,7,opt,name=sat_per_byte,json=satPerByte,proto3" json:"sat_per_byte,omitempty"`
|
|
|
|
|
// Whether this channel should be private, not announced to the greater
|
|
|
|
|
// network.
|
|
|
|
@@ -7309,7 +7309,7 @@ func (x *OpenChannelRequest) GetNodePubkey() []byte {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *OpenChannelRequest) GetNodePubkeyString() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.NodePubkeyString
|
|
|
|
@@ -7338,7 +7338,7 @@ func (x *OpenChannelRequest) GetTargetConf() int32 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *OpenChannelRequest) GetSatPerByte() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.SatPerByte
|
|
|
|
@@ -8463,7 +8463,7 @@ type PendingChannelsResponse struct {
|
|
|
|
|
// closed channels with a single confirmation. These channels are now
|
|
|
|
|
// considered closed from the time we see them on chain.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
PendingClosingChannels []*PendingChannelsResponse_ClosedChannel `protobuf:"bytes,3,rep,name=pending_closing_channels,json=pendingClosingChannels,proto3" json:"pending_closing_channels,omitempty"`
|
|
|
|
|
// Channels pending force closing
|
|
|
|
|
PendingForceClosingChannels []*PendingChannelsResponse_ForceClosedChannel `protobuf:"bytes,4,rep,name=pending_force_closing_channels,json=pendingForceClosingChannels,proto3" json:"pending_force_closing_channels,omitempty"`
|
|
|
|
@@ -8517,7 +8517,7 @@ func (x *PendingChannelsResponse) GetPendingOpenChannels() []*PendingChannelsRes
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *PendingChannelsResponse) GetPendingClosingChannels() []*PendingChannelsResponse_ClosedChannel {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PendingClosingChannels
|
|
|
|
@@ -9013,11 +9013,11 @@ type ChannelBalanceResponse struct {
|
|
|
|
|
|
|
|
|
|
// Deprecated. Sum of channels balances denominated in satoshis
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
|
|
|
|
|
// Deprecated. Sum of channels pending balances denominated in satoshis
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
PendingOpenBalance int64 `protobuf:"varint,2,opt,name=pending_open_balance,json=pendingOpenBalance,proto3" json:"pending_open_balance,omitempty"`
|
|
|
|
|
// Sum of channels local balances.
|
|
|
|
|
LocalBalance *Amount `protobuf:"bytes,3,opt,name=local_balance,json=localBalance,proto3" json:"local_balance,omitempty"`
|
|
|
|
@@ -9065,7 +9065,7 @@ func (*ChannelBalanceResponse) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_lightning_proto_rawDescGZIP(), []int{94}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *ChannelBalanceResponse) GetBalance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Balance
|
|
|
|
@@ -9073,7 +9073,7 @@ func (x *ChannelBalanceResponse) GetBalance() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *ChannelBalanceResponse) GetPendingOpenBalance() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.PendingOpenBalance
|
|
|
|
@@ -9155,7 +9155,7 @@ type QueryRoutesRequest struct {
|
|
|
|
|
IgnoredNodes [][]byte `protobuf:"bytes,6,rep,name=ignored_nodes,json=ignoredNodes,proto3" json:"ignored_nodes,omitempty"`
|
|
|
|
|
// Deprecated. A list of edges to ignore during path finding.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
IgnoredEdges []*EdgeLocator `protobuf:"bytes,7,rep,name=ignored_edges,json=ignoredEdges,proto3" json:"ignored_edges,omitempty"`
|
|
|
|
|
// The source node where the request route should originated from. If empty,
|
|
|
|
|
// self is assumed.
|
|
|
|
@@ -9268,7 +9268,7 @@ func (x *QueryRoutesRequest) GetIgnoredNodes() [][]byte {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *QueryRoutesRequest) GetIgnoredEdges() []*EdgeLocator {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.IgnoredEdges
|
|
|
|
@@ -9533,11 +9533,11 @@ type Hop struct {
|
|
|
|
|
// height, the next 3 the index within the block, and the last 2 bytes are the
|
|
|
|
|
// output index for the channel.
|
|
|
|
|
ChanId uint64 `protobuf:"varint,1,opt,name=chan_id,json=chanId,proto3" json:"chan_id,omitempty"`
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
ChanCapacity int64 `protobuf:"varint,2,opt,name=chan_capacity,json=chanCapacity,proto3" json:"chan_capacity,omitempty"`
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
AmtToForward int64 `protobuf:"varint,3,opt,name=amt_to_forward,json=amtToForward,proto3" json:"amt_to_forward,omitempty"`
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Fee int64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
|
|
|
Expiry uint32 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
|
|
|
AmtToForwardMsat int64 `protobuf:"varint,6,opt,name=amt_to_forward_msat,json=amtToForwardMsat,proto3" json:"amt_to_forward_msat,omitempty"`
|
|
|
|
@@ -9549,7 +9549,7 @@ type Hop struct {
|
|
|
|
|
// TLV format. Note that if any custom tlv_records below are specified, then
|
|
|
|
|
// this field MUST be set to true for them to be encoded properly.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
TlvPayload bool `protobuf:"varint,9,opt,name=tlv_payload,json=tlvPayload,proto3" json:"tlv_payload,omitempty"`
|
|
|
|
|
// An optional TLV record that signals the use of an MPP payment. If present,
|
|
|
|
|
// the receiver will enforce that the same mpp_record is included in the final
|
|
|
|
@@ -9610,7 +9610,7 @@ func (x *Hop) GetChanId() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Hop) GetChanCapacity() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.ChanCapacity
|
|
|
|
@@ -9618,7 +9618,7 @@ func (x *Hop) GetChanCapacity() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Hop) GetAmtToForward() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AmtToForward
|
|
|
|
@@ -9626,7 +9626,7 @@ func (x *Hop) GetAmtToForward() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Hop) GetFee() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Fee
|
|
|
|
@@ -9662,7 +9662,7 @@ func (x *Hop) GetPubKey() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Hop) GetTlvPayload() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TlvPayload
|
|
|
|
@@ -9843,7 +9843,7 @@ type Route struct {
|
|
|
|
|
// of a one-hop payment, this value will be zero as we don't need to pay a fee
|
|
|
|
|
// to ourselves.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
TotalFees int64 `protobuf:"varint,2,opt,name=total_fees,json=totalFees,proto3" json:"total_fees,omitempty"`
|
|
|
|
|
// The total amount of funds required to complete a payment over this route.
|
|
|
|
|
// This value includes the cumulative fees at each hop. As a result, the HTLC
|
|
|
|
@@ -9851,7 +9851,7 @@ type Route struct {
|
|
|
|
|
// satoshis, otherwise the route will fail at an intermediate node due to an
|
|
|
|
|
// insufficient amount of fees.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
TotalAmt int64 `protobuf:"varint,3,opt,name=total_amt,json=totalAmt,proto3" json:"total_amt,omitempty"`
|
|
|
|
|
// Contains details concerning the specific forwarding details at each hop.
|
|
|
|
|
Hops []*Hop `protobuf:"bytes,4,rep,name=hops,proto3" json:"hops,omitempty"`
|
|
|
|
@@ -9900,7 +9900,7 @@ func (x *Route) GetTotalTimeLock() uint32 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Route) GetTotalFees() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TotalFees
|
|
|
|
@@ -9908,7 +9908,7 @@ func (x *Route) GetTotalFees() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Route) GetTotalAmt() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.TotalAmt
|
|
|
|
@@ -10346,7 +10346,7 @@ type ChannelEdge struct {
|
|
|
|
|
// output index for the channel.
|
|
|
|
|
ChannelId uint64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
|
|
|
|
|
ChanPoint string `protobuf:"bytes,2,opt,name=chan_point,json=chanPoint,proto3" json:"chan_point,omitempty"`
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
LastUpdate uint32 `protobuf:"varint,3,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
|
|
|
|
|
Node1Pub string `protobuf:"bytes,4,opt,name=node1_pub,json=node1Pub,proto3" json:"node1_pub,omitempty"`
|
|
|
|
|
Node2Pub string `protobuf:"bytes,5,opt,name=node2_pub,json=node2Pub,proto3" json:"node2_pub,omitempty"`
|
|
|
|
@@ -10403,7 +10403,7 @@ func (x *ChannelEdge) GetChanPoint() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *ChannelEdge) GetLastUpdate() uint32 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.LastUpdate
|
|
|
|
@@ -11118,12 +11118,12 @@ type NodeUpdate struct {
|
|
|
|
|
|
|
|
|
|
// Deprecated, use node_addresses.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
|
|
|
|
IdentityKey string `protobuf:"bytes,2,opt,name=identity_key,json=identityKey,proto3" json:"identity_key,omitempty"`
|
|
|
|
|
// Deprecated, use features.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
GlobalFeatures []byte `protobuf:"bytes,3,opt,name=global_features,json=globalFeatures,proto3" json:"global_features,omitempty"`
|
|
|
|
|
Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"`
|
|
|
|
|
Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
|
|
|
|
@@ -11165,7 +11165,7 @@ func (*NodeUpdate) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_lightning_proto_rawDescGZIP(), []int{121}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *NodeUpdate) GetAddresses() []string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Addresses
|
|
|
|
@@ -11180,7 +11180,7 @@ func (x *NodeUpdate) GetIdentityKey() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *NodeUpdate) GetGlobalFeatures() []byte {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.GlobalFeatures
|
|
|
|
@@ -11666,7 +11666,7 @@ type Invoice struct {
|
|
|
|
|
//
|
|
|
|
|
// The field is deprecated. Use the state field instead (compare to SETTLED).
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Settled bool `protobuf:"varint,6,opt,name=settled,proto3" json:"settled,omitempty"`
|
|
|
|
|
// When this invoice was created.
|
|
|
|
|
// Measured in seconds since the unix epoch.
|
|
|
|
@@ -11713,7 +11713,7 @@ type Invoice struct {
|
|
|
|
|
SettleIndex uint64 `protobuf:"varint,17,opt,name=settle_index,json=settleIndex,proto3" json:"settle_index,omitempty"`
|
|
|
|
|
// Deprecated, use amt_paid_sat or amt_paid_msat.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
AmtPaid int64 `protobuf:"varint,18,opt,name=amt_paid,json=amtPaid,proto3" json:"amt_paid,omitempty"`
|
|
|
|
|
// The amount that was accepted for this invoice, in satoshis. This will ONLY
|
|
|
|
|
// be set if this invoice has been settled. We provide this field as if the
|
|
|
|
@@ -11828,7 +11828,7 @@ func (x *Invoice) GetValueMsat() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Invoice) GetSettled() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Settled
|
|
|
|
@@ -11913,7 +11913,7 @@ func (x *Invoice) GetSettleIndex() uint64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Invoice) GetAmtPaid() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AmtPaid
|
|
|
|
@@ -12303,7 +12303,7 @@ type PaymentHash struct {
|
|
|
|
|
// Deprecated now that the REST gateway supports base64 encoding of bytes
|
|
|
|
|
// fields.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
RHashStr string `protobuf:"bytes,1,opt,name=r_hash_str,json=rHashStr,proto3" json:"r_hash_str,omitempty"`
|
|
|
|
|
// The payment hash of the invoice to be looked up. When using REST, this field
|
|
|
|
|
// must be encoded as base64.
|
|
|
|
@@ -12342,7 +12342,7 @@ func (*PaymentHash) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_lightning_proto_rawDescGZIP(), []int{132}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *PaymentHash) GetRHashStr() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.RHashStr
|
|
|
|
@@ -12596,15 +12596,15 @@ type Payment struct {
|
|
|
|
|
PaymentHash string `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
|
|
|
|
// Deprecated, use value_sat or value_msat.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
|
|
|
// Deprecated, use creation_time_ns
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
CreationDate int64 `protobuf:"varint,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"`
|
|
|
|
|
// Deprecated, use fee_sat or fee_msat.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
|
|
|
// The payment preimage
|
|
|
|
|
PaymentPreimage string `protobuf:"bytes,6,opt,name=payment_preimage,json=paymentPreimage,proto3" json:"payment_preimage,omitempty"`
|
|
|
|
@@ -12670,7 +12670,7 @@ func (x *Payment) GetPaymentHash() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Payment) GetValue() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Value
|
|
|
|
@@ -12678,7 +12678,7 @@ func (x *Payment) GetValue() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Payment) GetCreationDate() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.CreationDate
|
|
|
|
@@ -12686,7 +12686,7 @@ func (x *Payment) GetCreationDate() int64 {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *Payment) GetFee() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Fee
|
|
|
|
@@ -14285,7 +14285,7 @@ type ForwardingEvent struct {
|
|
|
|
|
// Timestamp is the time (unix epoch offset) that this circuit was
|
|
|
|
|
// completed. Deprecated by timestamp_ns.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
|
// The incoming channel ID that carried the HTLC that created the circuit.
|
|
|
|
|
ChanIdIn uint64 `protobuf:"varint,2,opt,name=chan_id_in,json=chanIdIn,proto3" json:"chan_id_in,omitempty"`
|
|
|
|
@@ -14349,7 +14349,7 @@ func (*ForwardingEvent) Descriptor() ([]byte, []int) {
|
|
|
|
|
return file_lightning_proto_rawDescGZIP(), []int{158}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Do not use.
|
|
|
|
|
// Deprecated: Marked as deprecated in lightning.proto.
|
|
|
|
|
func (x *ForwardingEvent) GetTimestamp() uint64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Timestamp
|
|
|
|
|