Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Kumar Mishra <ashish10677@gmail.com>
  • Loading branch information
ashish10677 committed Sep 8, 2022
1 parent dcaae7d commit e12ed76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ func (*UtilsStruct) Vote(ctx context.Context, config types.Configurations, clien
case <-ctx.Done():
return nil
default:
log.Debugf("Header value: ", header.Number)
log.Debugf("Header value: %d", header.Number)
latestHeader, err := utils.UtilsInterface.GetLatestBlockWithRetry(client)
if err != nil {
log.Error("Error in fetching block: ", err)
continue
}
log.Debugf("Latest header value: ", latestHeader.Number)
log.Debugf("Latest header value: %d", latestHeader.Number)
if latestHeader.Number.Cmp(header.Number) != 0 {
header = latestHeader
cmdUtils.HandleBlock(client, account, latestHeader.Number, config, rogueData)
Expand Down

0 comments on commit e12ed76

Please sign in to comment.