Skip to content

Commit

Permalink
Added sleep time to reduce amount of RPC calls to get blockNumber (#1042
Browse files Browse the repository at this point in the history
)

add sleep after client call to get blockNumber
  • Loading branch information
Yashk767 committed Dec 15, 2022
1 parent cf08876 commit f20438c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/vote.go
Expand Up @@ -137,6 +137,7 @@ func (*UtilsStruct) Vote(ctx context.Context, config types.Configurations, clien
header = latestHeader
cmdUtils.HandleBlock(client, account, latestHeader.Number, config, rogueData, backupNodeActionsToIgnore)
}
time.Sleep(time.Second * time.Duration(core.BlockNumberInterval))
}
}
}
Expand Down

0 comments on commit f20438c

Please sign in to comment.