status-go icon indicating copy to clipboard operation
status-go copied to clipboard

Implement exponential backoff for commands to load blocks and transfers

Open IvanBelyakoff opened this issue 1 year ago • 0 comments

Problem

Currently in case of failure commands (transferCommand, findBlocksCommand) retry after predefined interval and in case of limit on max retries they are stopped or in case of infinite retries they just waste the requests.

Implementation

Instead of predefined interval, use exponential backoff. This should help with some errors related to network issues or providers occasionally not available

IvanBelyakoff avatar Jan 22 '24 10:01 IvanBelyakoff