Skip to content

Commit f20438c

Browse files
authored
Added sleep time to reduce amount of RPC calls to get blockNumber (#1042)
add sleep after client call to get blockNumber
1 parent cf08876 commit f20438c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/vote.go

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ func (*UtilsStruct) Vote(ctx context.Context, config types.Configurations, clien
137137
header = latestHeader
138138
cmdUtils.HandleBlock(client, account, latestHeader.Number, config, rogueData, backupNodeActionsToIgnore)
139139
}
140+
time.Sleep(time.Second * time.Duration(core.BlockNumberInterval))
140141
}
141142
}
142143
}

0 commit comments

Comments
 (0)