From 6f8638e32eee1e12abd7c0239353cc5ea659ddd4 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 28 Oct 2024 17:18:52 -0400 Subject: [PATCH] use loadlatest flag for loading app for height --- cmd/zetacored/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zetacored/root.go b/cmd/zetacored/root.go index a72d4a0cf6..3880b12108 100644 --- a/cmd/zetacored/root.go +++ b/cmd/zetacored/root.go @@ -300,7 +300,7 @@ func (ac appCreator) appExport( // If height is -1, it means we are using the latest height. // For all other cases, we load the specified height from the Store - if height != -1 { + if !loadLatest { if err := zetaApp.LoadHeight(height); err != nil { return servertypes.ExportedApp{}, err }