[Cashtab] fix stale cached data
Summary:
- Uncofirmed Transaction
- Unconfirmed tx has blocktime set to "undefined"
- Cashtab shows unconfirmed tx as being created "Today"
- Caching unconfirmed tx with CacheFirst strategy will cause the tx to always shown as "Today"
- This fix make sure that only confirmed txs are cached.
- SLP Token Stats
- SLP Token Stats (totalMinted, totalBurned) is specific to a particular moment in time. It does not make sense to cache them
- This fix remove the caching of SLP Token Stats
- Removing old caches
- simply changing the suffix to 'v1.0.1' will discard the old caches
Test Plan:
- cd web/cashtab
- npm start
- navigate to localhost:3000
- check that the following caches are created:
+ cashtab-static-assets-v1.0.1
+ cashtab-tx-data-v1.0.1
+ cashtab-slp-tx-data-v1.0.1 (if you have token tx)
- send some XECs and Tokens
- inspect the caches to verify that unconfirmed txs are not cached
- wait for the txs become confirmed
- inspect the caches again to verify that the newly confirmed txs are cached
Reviewers: bytesofman, #bitcoin_abc
Reviewed By: bytesofman, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D10969