Node peer list function for CAPI, and some Peer cleanup.
This commit is contained in:
@@ -187,6 +187,15 @@ public:
|
||||
f(*this,p->second);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return All currently active peers by address
|
||||
*/
|
||||
inline std::map< Address,SharedPtr<Peer> > allPeers() const
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
return _activePeers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate a root topology dictionary against the identities specified in Defaults
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user