Allow subscription to peer status changes (RIPD-579)

Subscribe to "peer_status" stream (admin only) permits
reception of "peerStatusChange" notifications.

These can include the event the peer is reporting, the peer's
new status, the peer's currently accepted ledger hash and sequence,
the peer's network time, and the range of ledgers the peer has
available for remote querying.
This commit is contained in:
JoelKatz
2015-10-19 16:09:01 -07:00
committed by Nik Bougalis
parent 75bed5efcf
commit 6dbbb7406c
6 changed files with 133 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ InfoSub::~InfoSub ()
m_source.unsubLedger (mSeq);
m_source.unsubServer (mSeq);
m_source.unsubValidations (mSeq);
m_source.unsubPeerStatus (mSeq);
// Use the internal unsubscribe so that it won't call
// back to us and modify its own parameter