mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Fix one case where checkAccept didn't get called.
This commit is contained in:
@@ -478,10 +478,15 @@ void LedgerMaster::checkAccept (uint256 const& hash)
|
|||||||
{
|
{
|
||||||
Ledger::pointer ledger = mLedgerHistory.getLedgerByHash (hash);
|
Ledger::pointer ledger = mLedgerHistory.getLedgerByHash (hash);
|
||||||
|
|
||||||
|
if (!ledger)
|
||||||
|
{
|
||||||
|
InboundLedger::pointer l = getApp().getInboundLedgers().findCreate(hash, 0);
|
||||||
|
if (l->isComplete() && !l->isFailed())
|
||||||
|
ledger = l->getLedger();
|
||||||
|
}
|
||||||
|
|
||||||
if (ledger)
|
if (ledger)
|
||||||
checkAccept (hash, ledger->getLedgerSeq ());
|
checkAccept (hash, ledger->getLedgerSeq ());
|
||||||
else
|
|
||||||
getApp().getInboundLedgers().findCreate(hash, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LedgerMaster::checkAccept (uint256 const& hash, uint32 seq)
|
void LedgerMaster::checkAccept (uint256 const& hash, uint32 seq)
|
||||||
|
|||||||
Reference in New Issue
Block a user