mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Fix two small bugs.
This commit is contained in:
@@ -2094,7 +2094,7 @@ bool NetworkOPs::getFetchPack(const uint256& hash, std::vector<unsigned char>& d
|
||||
bool NetworkOPs::shouldFetchPack()
|
||||
{
|
||||
uint32 now = getNetworkTimeNC();
|
||||
if (mLastFetchPack == now)
|
||||
if ((mLastFetchPack == now) || ((mLastFetchPack + 1) == now))
|
||||
return false;
|
||||
mFetchPack.sweep();
|
||||
if (mFetchPack.getCacheSize() > 384)
|
||||
|
||||
Reference in New Issue
Block a user