mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve LedgerMaster shard acquisition
This commit is contained in:
committed by
manojsdoshi
parent
8f50fd051e
commit
91e857874f
@@ -328,7 +328,8 @@ ShardArchiveHandler::next(std::lock_guard<std::mutex> const& l)
|
||||
if (auto const seq = app_.getShardStore()->lastLedgerSeq(shardIndex);
|
||||
(shouldHaveHash = app_.getLedgerMaster().getValidLedgerIndex() > seq))
|
||||
{
|
||||
expectedHash = app_.getLedgerMaster().walkHashBySeq(seq);
|
||||
expectedHash = app_.getLedgerMaster().walkHashBySeq(
|
||||
seq, InboundLedger::Reason::GENERIC);
|
||||
}
|
||||
|
||||
if (!expectedHash)
|
||||
|
||||
Reference in New Issue
Block a user