From 5bf09f285081fa8af63f33365d22c6b58543f712 Mon Sep 17 00:00:00 2001 From: Troy Kessler Date: Thu, 5 Dec 2024 11:52:57 +0100 Subject: [PATCH] fix: restart in serve-snapshots --- sync/servesnapshots/servesnapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/servesnapshots/servesnapshots.go b/sync/servesnapshots/servesnapshots.go index 7cac9ed..aa23a1c 100644 --- a/sync/servesnapshots/servesnapshots.go +++ b/sync/servesnapshots/servesnapshots.go @@ -100,7 +100,7 @@ func Start() error { if canApplyBlocks { // TODO: dydx needs restart here (and in height-sync), other chains too? if app.Genesis.GetChainId() == "dydx-mainnet-1" { - if err := app.RestartAll(0); err != nil { + if err := app.RestartAll(snapshotCollector.GetInterval()); err != nil { return fmt.Errorf("failed to restart app: %w", err) } }