From 855cac6faaeb0167c7f3308e32d97dbac26a2336 Mon Sep 17 00:00:00 2001 From: "Gregor G." <75445744+sideninja@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:50:40 +0100 Subject: [PATCH] fix(relayer): wrong block height used (#2387) Wrong block height was used for cursor, xblock height instead of consensus block height. issue: none --- lib/cchain/provider/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cchain/provider/abci.go b/lib/cchain/provider/abci.go index 7f80849dd..7f18e3a32 100644 --- a/lib/cchain/provider/abci.go +++ b/lib/cchain/provider/abci.go @@ -382,7 +382,7 @@ func newABCIFetchFunc(attCl atypes.QueryClient, cmtCl cmtservice.ServiceClient, // Caller has to wait and retry in both cases if !ok || earliestAttestationAtLatestHeight.AttestOffset < fromOffset { // First attestation hasn't happened yet, return empty and set cursor to latest height - return []xchain.Attestation{}, earliestAttestationAtLatestHeight.BlockHeight, nil + return []xchain.Attestation{}, cursor, nil } latestBlockResp, err := cmtCl.GetLatestBlock(ctx, &cmtservice.GetLatestBlockRequest{})