lnrpc: expose all local and remote channel constraints
This commit is contained in:
1 parent
eeea441c3c
commit
f11da830b9
6 files changed
+1271
-866
No files matched your search
+971
-850
File diff suppressed because it is too large.
Load diff
+40
-7
@@ -993,6 +993,30 @@ enum CommitmentType {
|
||||
UNKNOWN_COMMITMENT_TYPE = 999;
|
||||
}
|
||||
|
||||
message ChannelConstraints {
|
||||
/*
|
||||
The CSV delay expressed in relative blocks. If the channel is force closed,
|
||||
we will need to wait for this many blocks before we can regain our funds.
|
||||
*/
|
||||
uint32 csv_delay = 1;
|
||||
|
||||
// The minimum satoshis this node is required to reserve in its balance.
|
||||
uint64 chan_reserve_sat = 2;
|
||||
|
||||
// The dust limit (in satoshis) of the initiator's commitment tx.
|
||||
uint64 dust_limit_sat = 3;
|
||||
|
||||
// The maximum amount of coins in millisatoshis that can be pending in this
|
||||
// channel.
|
||||
uint64 max_pending_amt_msat = 4;
|
||||
|
||||
// The smallest HTLC in millisatoshis that the initiator will accept.
|
||||
uint64 min_htlc_msat = 5;
|
||||
|
||||
// The total number of incoming HTLC's that the initiator will accept.
|
||||
uint32 max_accepted_htlcs = 6;
|
||||
}
|
||||
|
||||
message Channel {
|
||||
// Whether this channel is active or not
|
||||
bool active = 1;
|
||||
@@ -1065,10 +1089,11 @@ message Channel {
|
||||
repeated HTLC pending_htlcs = 15;
|
||||
|
||||
/*
|
||||
The CSV delay expressed in relative blocks. If the channel is force closed,
|
||||
we will need to wait for this many blocks before we can regain our funds.
|
||||
Deprecated. The CSV delay expressed in relative blocks. If the channel is
|
||||
force closed, we will need to wait for this many blocks before we can regain
|
||||
our funds.
|
||||
*/
|
||||
uint32 csv_delay = 16;
|
||||
uint32 csv_delay = 16 [deprecated = true];
|
||||
|
||||
// Whether this channel is advertised to the network or not.
|
||||
bool private = 17;
|
||||
@@ -1079,13 +1104,15 @@ message Channel {
|
||||
// A set of flags showing the current state of the channel.
|
||||
string chan_status_flags = 19;
|
||||
|
||||
// The minimum satoshis this node is required to reserve in its balance.
|
||||
int64 local_chan_reserve_sat = 20;
|
||||
// Deprecated. The minimum satoshis this node is required to reserve in its
|
||||
// balance.
|
||||
int64 local_chan_reserve_sat = 20 [deprecated = true];
|
||||
|
||||
/*
|
||||
The minimum satoshis the other node is required to reserve in its balance.
|
||||
Deprecated. The minimum satoshis the other node is required to reserve in
|
||||
its balance.
|
||||
*/
|
||||
int64 remote_chan_reserve_sat = 21;
|
||||
int64 remote_chan_reserve_sat = 21 [deprecated = true];
|
||||
|
||||
// Deprecated. Use commitment_type.
|
||||
bool static_remote_key = 22 [deprecated = true];
|
||||
@@ -1133,6 +1160,12 @@ message Channel {
|
||||
value of zero will mean the channel has no additional restrictions.
|
||||
*/
|
||||
uint32 thaw_height = 28;
|
||||
|
||||
// List constraints for the local node.
|
||||
ChannelConstraints local_constraints = 29;
|
||||
|
||||
// List constraints for the remote node.
|
||||
ChannelConstraints remote_constraints = 30;
|
||||
}
|
||||
|
||||
message ListChannelsRequest {
|
||||
|
||||
+46
-3
@@ -2551,7 +2551,7 @@
|
||||
"csv_delay": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The CSV delay expressed in relative blocks. If the channel is force closed,\nwe will need to wait for this many blocks before we can regain our funds."
|
||||
"description": "Deprecated. The CSV delay expressed in relative blocks. If the channel is\nforce closed, we will need to wait for this many blocks before we can regain\nour funds."
|
||||
},
|
||||
"private": {
|
||||
"type": "boolean",
|
||||
@@ -2570,12 +2570,12 @@
|
||||
"local_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "The minimum satoshis this node is required to reserve in its balance."
|
||||
"description": "Deprecated. The minimum satoshis this node is required to reserve in its\nbalance."
|
||||
},
|
||||
"remote_chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "int64",
|
||||
"description": "The minimum satoshis the other node is required to reserve in its balance."
|
||||
"description": "Deprecated. The minimum satoshis the other node is required to reserve in\nits balance."
|
||||
},
|
||||
"static_remote_key": {
|
||||
"type": "boolean",
|
||||
@@ -2609,6 +2609,14 @@
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "This uint32 indicates if this channel is to be considered 'frozen'. A\nfrozen channel doest not allow a cooperative channel close by the\ninitiator. The thaw_height is the height that this restriction stops\napplying to the channel. This field is optional, not setting it or using a\nvalue of zero will mean the channel has no additional restrictions."
|
||||
},
|
||||
"local_constraints": {
|
||||
"$ref": "#/definitions/lnrpcChannelConstraints",
|
||||
"description": "List constraints for the local node."
|
||||
},
|
||||
"remote_constraints": {
|
||||
"$ref": "#/definitions/lnrpcChannelConstraints",
|
||||
"description": "List constraints for the remote node."
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -2794,6 +2802,41 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelConstraints": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"csv_delay": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The CSV delay expressed in relative blocks. If the channel is force closed,\nwe will need to wait for this many blocks before we can regain our funds."
|
||||
},
|
||||
"chan_reserve_sat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The minimum satoshis this node is required to reserve in its balance."
|
||||
},
|
||||
"dust_limit_sat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The dust limit (in satoshis) of the initiator's commitment tx."
|
||||
},
|
||||
"max_pending_amt_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The maximum amount of coins in millisatoshis that can be pending in this\nchannel."
|
||||
},
|
||||
"min_htlc_msat": {
|
||||
"type": "string",
|
||||
"format": "uint64",
|
||||
"description": "The smallest HTLC in millisatoshis that the initiator will accept."
|
||||
},
|
||||
"max_accepted_htlcs": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "The total number of incoming HTLC's that the initiator will accept."
|
||||
}
|
||||
}
|
||||
},
|
||||
"lnrpcChannelEdge": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user