mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
If we detect a missing node in a ledger we're supposed to have full,
re-acquire that ledger to fill the hole.
This commit is contained in:
@@ -2124,4 +2124,12 @@ void NetworkOPs::gotFetchPack(bool progress, uint32 seq)
|
||||
boost::bind(&LedgerAcquireMaster::gotFetchPack, &theApp->getMasterLedgerAcquire(), _1));
|
||||
}
|
||||
|
||||
void NetworkOPs::missingNodeInLedger(uint32 seq)
|
||||
{
|
||||
cLog(lsWARNING) << "We are missing a node in ledger " << seq;
|
||||
uint256 hash = theApp->getLedgerMaster().getHashBySeq(seq);
|
||||
if (hash.isNonZero())
|
||||
theApp->getMasterLedgerAcquire().findCreate(hash, seq);
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user