From 13b89902907ca38a1de2e52a11e2caffc5732ae4 Mon Sep 17 00:00:00 2001 From: Alexxxxxx <118710506+alexgao001@users.noreply.github.com> Date: Mon, 6 May 2024 17:12:40 +0800 Subject: [PATCH] Revert "fix: sync light block header" (#111) --- listener/greenfield_listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listener/greenfield_listener.go b/listener/greenfield_listener.go index 59a270c..c75d20b 100644 --- a/listener/greenfield_listener.go +++ b/listener/greenfield_listener.go @@ -184,7 +184,7 @@ func (l *GreenfieldListener) monitorValidatorsHelper(block *tmtypes.Block) error return err } - curValidators, err := l.greenfieldExecutor.QueryValidatorsAtHeight(lightClientLatestHeight) + curValidators, err := l.greenfieldExecutor.QueryValidatorsAtHeight(nextHeight - 1) if err != nil { return err }