Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Oct 31, 2023
1 parent 9ae42fe commit a8ed811
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rpc/app_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,13 @@ func (aq *AppQuerier) QueryRecursiveLatestValset(ctx context.Context, height uin

if vs, err := aq.QueryHistoricalValsetByNonce(ctx, latestNonce, currentHeight); err == nil {
return vs, nil
} else {
latestValset, err := aq.QueryHistoricalLastValsetBeforeNonce(ctx, latestNonce, currentHeight)
if err == nil {
return latestValset, nil
}
}

latestValset, err := aq.QueryHistoricalLastValsetBeforeNonce(ctx, latestNonce, currentHeight)
if err == nil {
return latestValset, nil
}

aq.Logger.Debug("keeping looking for attestation in archival state", "err", err.Error())
currentHeight -= uint64(BlocksIn20DaysPeriod)
}
Expand Down

0 comments on commit a8ed811

Please sign in to comment.