mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 16:57:56 +00:00
Share the 'shouldAcquire' function. recvGetLedger will needed it.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user