Skip to content

Commit

Permalink
catchup from x-1, not from x
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bellamy committed Jan 25, 2022
1 parent a3496b5 commit f468799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingest/ledgerbackend/captive_core_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit f468799

Please sign in to comment.