mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 09:18:02 +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;
|
size_t numAttempts = 0;
|
||||||
while (!stopping_)
|
while (!stopping_)
|
||||||
{
|
{
|
||||||
auto ledger = flatMapBackend_->fetchLedgerBySequence(ledgerSequence);
|
auto range = flatMapBackend_->fetchLedgerRange();
|
||||||
|
|
||||||
if (!ledger)
|
if (!range || range->maxSequence < ledgerSequence)
|
||||||
{
|
{
|
||||||
BOOST_LOG_TRIVIAL(warning)
|
BOOST_LOG_TRIVIAL(warning)
|
||||||
<< __func__ << " : "
|
<< __func__ << " : "
|
||||||
|
|||||||
Reference in New Issue
Block a user