mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve shard downloader status reporting
This commit is contained in:
committed by
Nik Bougalis
parent
56bc2a2ade
commit
08371ba2c4
@@ -359,10 +359,8 @@ PeerImp::hasLedger (uint256 const& hash, std::uint32_t seq) const
|
||||
return true;
|
||||
}
|
||||
|
||||
if (seq >= app_.getNodeStore().earliestSeq())
|
||||
return hasShard(
|
||||
(seq - 1) / NodeStore::DatabaseShard::ledgersPerShardDefault);
|
||||
return false;
|
||||
return seq >= app_.getNodeStore().earliestSeq() &&
|
||||
hasShard(NodeStore::seqToShardIndex(seq));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user