diff options
Diffstat (limited to 'node/Topology.hpp')
-rw-r--r-- | node/Topology.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node/Topology.hpp b/node/Topology.hpp index 242ef93b..63c81016 100644 --- a/node/Topology.hpp +++ b/node/Topology.hpp @@ -188,6 +188,15 @@ public: } /** + * @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 * * @param rt Root topology dictionary |