Share the 'shouldAcquire' function. recvGetLedger will needed it.

This commit is contained in:
JoelKatz
2013-01-12 08:42:24 -08:00
parent cbeb6a50e8
commit 55d1af746c
2 changed files with 3 additions and 1 deletions

View File

@@ -233,7 +233,7 @@ void LedgerMaster::missingAcquireComplete(LedgerAcquire::pointer acq)
} }
} }
static bool shouldAcquire(uint32 currentLedger, uint32 ledgerHistory, uint32 candidateLedger) bool LedgerMaster::shouldAcquire(uint32 currentLedger, uint32 ledgerHistory, uint32 candidateLedger)
{ {
bool ret; bool ret;
if (candidateLedger >= currentLedger) if (candidateLedger >= currentLedger)

View File

@@ -124,6 +124,8 @@ public:
void checkAccept(const uint256& hash); void checkAccept(const uint256& hash);
void checkAccept(const uint256& hash, uint32 seq); void checkAccept(const uint256& hash, uint32 seq);
void tryPublish(); void tryPublish();
static bool shouldAcquire(uint32 currentLedgerID, uint32 ledgerHistory, uint32 targetLedger);
}; };
#endif #endif