Peers are now dumped on shutdown in a persistence cache and reloaded on startup, which is good enough for clients right now. Supernodes will get something else for long-term authoritative identity caching.

This commit is contained in:
Adam Ierymenko 2013-10-21 11:15:47 -04:00
parent 6e217dfcb0
commit 40e4f39181
6 changed files with 113 additions and 4 deletions

View file

@ -271,6 +271,9 @@ public:
private:
const RuntimeEnvironment *const _r;
void _dumpPeers();
void _loadPeers();
std::map< Address,SharedPtr<Peer> > _activePeers;
Mutex _activePeers_m;