forta-network / forta-bot-sdk

Forta Detection Bot SDK and CLI tool
MIT License
71 stars 38 forks source link

increase time between alert queries #275

Closed haseebrabbani closed 1 year ago

haseebrabbani commented 1 year ago

when running a bot locally that has subscribed to other bots (using npm run), we currently query alerts whenever theres a new block which comes out to about 15-20 seconds. this is too recent a time period to query since indexing alerts can take up to a minute. with this change, we wait at least one minute before querying for alerts (which is what scan node does)