mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-29 16:15:50 +00:00
fix publish bug. check ledger range
This commit is contained in:
@@ -154,9 +154,9 @@ ReportingETL::publishLedger(uint32_t ledgerSequence, uint32_t maxAttempts)
|
||||
size_t numAttempts = 0;
|
||||
while (!stopping_)
|
||||
{
|
||||
auto ledger = flatMapBackend_->fetchLedgerBySequence(ledgerSequence);
|
||||
auto range = flatMapBackend_->fetchLedgerRange();
|
||||
|
||||
if (!ledger)
|
||||
if (!range || range->maxSequence < ledgerSequence)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(warning)
|
||||
<< __func__ << " : "
|
||||
|
||||
Reference in New Issue
Block a user