Skip to content

Commit

Permalink
Enbable publishing subsequent ledgers even if a prior one
Browse files Browse the repository at this point in the history
has not been acquired yet.
  • Loading branch information
mtrippled committed Jul 18, 2024
1 parent f3bcc65 commit 2accea3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/xrpld/app/ledger/detail/LedgerMaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,11 +1445,20 @@ LedgerMaster::findNewLedgersToPublish(
}

// Did we acquire the next ledger we need to publish?
if (ledger && (ledger->info().seq == pubSeq))
if (ledger && (ledger->info().seq >= pubSeq))
{
ledger->setValidated();
ret.push_back(ledger);
++pubSeq;
if (ledger->info().seq > pubSeq)
{
JLOG(m_journal.info()) << "ready to publish "
<< ledger->info().seq << ", but skipping "
<< pubSeq << " because it has not been acquired.";
}
else
{
++pubSeq;
}
}
}

Expand Down

0 comments on commit 2accea3

Please sign in to comment.