mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Redesign the way the acquire timer is (re)set so that we won't have bugs
where we fail to arm it.
This commit is contained in:
@@ -47,10 +47,11 @@ public:
|
||||
|
||||
void peerHas(Peer::ref);
|
||||
void badPeer(Peer::ref);
|
||||
void resetTimer();
|
||||
void setTimer();
|
||||
|
||||
int takePeerSetFrom(const PeerSet& s);
|
||||
int getPeerCount() const;
|
||||
virtual bool isDone() const { return mComplete || mFailed; }
|
||||
|
||||
protected:
|
||||
virtual void newPeer(Peer::ref) = 0;
|
||||
|
||||
Reference in New Issue
Block a user