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 14a5d60
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 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,21 @@ 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 14a5d60

Please sign in to comment.