rpc: expose peer's GossipSyncer sync type

This commit is contained in:
Wilmer Paulino committed 2019-04-03 15:44:47 -07:00
1 parent 8b6a9bb5d3
commit ca01695330
4 files changed
+735 -626

No files matched your search

+20
View File
@@ -1257,6 +1257,26 @@ message Peer {
/// Ping time to this peer
int64 ping_time = 9 [json_name = "ping_time"];
enum SyncType {
/**
Denotes that we cannot determine the peer's current sync type.
*/
UNKNOWN_SYNC = 0;
/**
Denotes that we are actively receiving new graph updates from the peer.
*/
ACTIVE_SYNC = 1;
/**
Denotes that we are not receiving new graph updates from the peer.
*/
PASSIVE_SYNC = 2;
}
// The type of sync we are currently performing with this peer.
SyncType sync_type = 10 [json_name = "sync_type"];
}
message ListPeersRequest {