Skip to content

Commit

Permalink
fix(relayer): return consensus block height
Browse files Browse the repository at this point in the history
  • Loading branch information
sideninja committed Nov 5, 2024
1 parent 26b7019 commit b252dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cchain/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ func (p Provider) stream(
deps := stream.Deps[xchain.Attestation]{
FetchBatch: func(ctx context.Context, offset uint64) ([]xchain.Attestation, error) {
atts, cursor, err := p.fetch(ctx, chainVer, offset, fetchCursor)
fetchCursor = cursor // always set cursor, in case of an error is set to 0, safer for retry
if err != nil {
return nil, err
}
fetchCursor = cursor

return atts, nil
},
Expand Down

0 comments on commit b252dbf

Please sign in to comment.