[#3833] Increase intreval of new blocks detection command

This commit is contained in:
Roman Volosovskyi 2023-10-25 10:00:28 +02:00
parent 08e95cd1ee
commit 9d59d889f6
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ type findNewBlocksCommand struct {
func (c *findNewBlocksCommand) Command() async.Command {
return async.InfiniteCommand{
Interval: 13 * time.Second, // TODO - make it configurable based on chain block mining time
// TODO - make it configurable based on chain block mining time
// NOTE(rasom): ^ it is unclear why each block has to be checked,
// that is rather undesirable, as it causes a lot of RPC requests
Interval: 2 * time.Minute,
Runable: c.Run,
}.Run
}