lnrpc: add field denoting if channel peer is online in ListChannels

This commit adds a new field to the ListChannels RPC command which
indicates if the peer is currently online or not. This is useful as
UI’s will be able to use this information to communicate the
availability of each channel to an end user.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-03-08 14:46:24 -08:00
1 parent addab3273f
commit 1dfda91415
4 files changed
+268 -248

No files matched your search

+12 -11
View File
@@ -251,20 +251,21 @@ message HTLC {
}
message ActiveChannel {
string remote_pubkey = 1 [ json_name = "remote_pubkey" ];
string channel_point = 2 [ json_name = "channel_point" ];
uint64 chan_id = 3 [ json_name = "chan_id" ];
bool active = 1 [ json_name = "active" ];
string remote_pubkey = 2 [ json_name = "remote_pubkey" ];
string channel_point = 3 [ json_name = "channel_point" ];
uint64 chan_id = 4 [ json_name = "chan_id" ];
int64 capacity = 4 [ json_name = "capacity" ];
int64 local_balance = 5 [ json_name = "local_balance" ];
int64 remote_balance = 6 [ json_name = "remote_balance" ];
int64 capacity = 5 [ json_name = "capacity" ];
int64 local_balance = 6 [ json_name = "local_balance" ];
int64 remote_balance = 7 [ json_name = "remote_balance" ];
int64 unsettled_balance = 7 [ json_name = "unsettled_balance" ];
int64 total_satoshis_sent = 8 [ json_name = "total_satoshis_sent" ];
int64 total_satoshis_received = 9 [ json_name = "total_satoshis_received" ];
uint64 num_updates = 10 [ json_name = "num_updates" ];
int64 unsettled_balance = 8 [ json_name = "unsettled_balance" ];
int64 total_satoshis_sent = 9 [ json_name = "total_satoshis_sent" ];
int64 total_satoshis_received = 10 [ json_name = "total_satoshis_received" ];
uint64 num_updates = 11 [ json_name = "num_updates" ];
repeated HTLC pending_htlcs = 11 [ json_name = "pending_htlcs" ];
repeated HTLC pending_htlcs = 12 [ json_name = "pending_htlcs" ];
}
message ListChannelsRequest {}