Introduction
Imagine Suite loses network connection. If some event occured during this period of network malfunction (such as new block is mined), Suite does not have a mechanism to fetch the data after the connection is recovered. That can lead to very undesirable consequences such as missing transactions etc. We need to check periodically that the connection is working and introduce some "recovery" mechanism if the network is down and then restored. Note that this can be way more common on Tor network, where the instability is more probable.
Goals:
We need to:
"Ping" the connection regularly to make sure we are connected. Note that this is already implemented for Ripple and Cardano Blockfrost, so it should be rather straightforward to introduce it for Blockbook.
In case the connection fails, we must enforce account refresh. So in case we found out the connection broke (thanks to point 1) we need to refresh the accounts to make sure all data is there.
The goal of this issue is basically improve Suite on flaky internet.
How to test:
Somehow cut connection to internet but keep wifi/ethernet (e.g. mobile hotspot without internet, or plug out your router from internet).
Introduction Imagine Suite loses network connection. If some event occured during this period of network malfunction (such as new block is mined), Suite does not have a mechanism to fetch the data after the connection is recovered. That can lead to very undesirable consequences such as missing transactions etc. We need to check periodically that the connection is working and introduce some "recovery" mechanism if the network is down and then restored. Note that this can be way more common on Tor network, where the instability is more probable.
Goals: We need to:
The goal of this issue is basically improve Suite on flaky internet.
How to test: