wizardsardine/liana

Refresh cache more often in GUI while wallet is syncing

Closed this issue · 1 comments

This applies to both newly created wallets and opening an existing wallet.

The cache is refreshed every 10 seconds, which means we may have to wait slightly longer to detect that the wallet has finished syncing / checking for new transactions.

We could refresh the cache more often while the wallet is not synced. However, the full information about whether the wallet is syncing is not currently available where the cache refresh interval is set. In the short-term, we could reduce the interval in the simple case that the wallet height is 0 and backend is remote or Electrum server (i.e repeating the logic used elsewhere).

Later on, we can reorganise and reuse the existing code to avoid logic repetition and cover all syncing scenarios.

As we agreed elsewhere, we will try to tackle the short term part for v8 and then leave the longer term solution for a future release.