Merge pull request #3238 from breez/chan_reserve_fields

rpc: add channel reserve fields in RPC responses.
This commit is contained in:
Wilmer Paulino authored and GitHub committed 2019-07-10 16:30:33 -07:00
commit f9816330c5
4 files changed
+585 -502

No files matched your search

+539 -497
View File
File diff suppressed because it is too large. Load diff
+17
View File
@@ -1161,6 +1161,14 @@ message Channel {
/// A set of flags showing the current state of the channel.
string chan_status_flags = 19 [json_name = "chan_status_flags"];
/// The minimum satoshis this node is required to reserve in its balance.
int64 local_chan_reserve_sat = 20 [json_name = "local_chan_reserve_sat"];
/**
The minimum satoshis the other node is required to reserve in its balance.
*/
int64 remote_chan_reserve_sat = 21 [json_name = "remote_chan_reserve_sat"];
}
@@ -1468,6 +1476,15 @@ message PendingChannelsResponse {
int64 local_balance = 4 [ json_name = "local_balance" ];
int64 remote_balance = 5 [ json_name = "remote_balance" ];
/// The minimum satoshis this node is required to reserve in its balance.
int64 local_chan_reserve_sat = 6 [json_name = "local_chan_reserve_sat"];
/**
The minimum satoshis the other node is required to reserve in its
balance.
*/
int64 remote_chan_reserve_sat = 7 [json_name = "remote_chan_reserve_sat"];
}
message PendingOpenChannel {
+20
View File
@@ -1407,6 +1407,16 @@
"remote_balance": {
"type": "string",
"format": "int64"
},
"local_chan_reserve_sat": {
"type": "string",
"format": "int64",
"description": "/ The minimum satoshis this node is required to reserve in its balance."
},
"remote_chan_reserve_sat": {
"type": "string",
"format": "int64",
"description": "*\nThe minimum satoshis the other node is required to reserve in its\nbalance."
}
}
},
@@ -1626,6 +1636,16 @@
"chan_status_flags": {
"type": "string",
"description": "/ A set of flags showing the current state of the channel."
},
"local_chan_reserve_sat": {
"type": "string",
"format": "int64",
"description": "/ The minimum satoshis this node is required to reserve in its balance."
},
"remote_chan_reserve_sat": {
"type": "string",
"format": "int64",
"description": "*\nThe minimum satoshis the other node is required to reserve in its balance."
}
}
},