From f4687999b8c52a8f54bf665e4bfcd04fd968bcb7 Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Tue, 25 Jan 2022 19:16:38 +0000 Subject: [PATCH] catchup from x-1, not from x --- ingest/ledgerbackend/captive_core_backend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ingest/ledgerbackend/captive_core_backend.go b/ingest/ledgerbackend/captive_core_backend.go index cf82e40008..92743b5bb4 100644 --- a/ingest/ledgerbackend/captive_core_backend.go +++ b/ingest/ledgerbackend/captive_core_backend.go @@ -253,9 +253,9 @@ func (c *CaptiveStellarCore) openOnlineReplaySubprocess(ctx context.Context, fro return errors.Wrap(err, "error calculating ledger and hash for stellar-core run") } - if runFrom > 1 { + if runFrom > 2 { // Can't catch up to the first ledger - err = c.stellarCoreRunner.catchup(runFrom-1, runFrom) + err = c.stellarCoreRunner.catchup(runFrom-2, runFrom-1) if err != nil { return errors.Wrap(err, "error running stellar-core") }