HomePhabricator

[Cashtab] Standardize wallet refresh interval

Description

[Cashtab] Standardize wallet refresh interval

Summary:
This diff standardizes the wallet refresh interval to 60 seconds.
Note: this is the fallback interval, as websocket events processed by processChronikWsMsg will still trigger instant refreshes.

The reasoning for moving away from basing fallback refresh intervals on websocket availability is because if there is no websocket then there is no chronik server either, so no need to distinguish between the two.

Test Plan:
npm test

  • grep -r websocketConnectedRefreshInterval src/ with no output
  • npm start
  • open dev console and observe the Websocket connected, adjusting wallet refresh interval to 60s message upon initial load
  • send XEC to this wallet and ensure instant refresh

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15281

Details

Provenance
emackAuthored on Jan 25 2024, 13:53
emackPushed on Jan 28 2024, 08:52
Reviewer
Restricted Project
Differential Revision
D15281: [Cashtab] Standardize wallet refresh interval
Parents
rABCf134cbc22b63: [Cashtab] Better fb logo in social
Branches
Unknown
Tags
Unknown