T2048
- hydratedUtxoDetails stored in the wallet state is not being used anywhere else in the code.
- this infomation can be derived from slpBalancesAndUtxos
- there is no need to store it separately
- this will help to maintain a single source of truth
Differential D10623
[Cashtab] remove hydratedUtxoDetails from wallet state hungsam on Dec 3 2021, 05:31. Authored by Tags None Subscribers None
Details
T2048
Diff Detail
Event TimelineComment Actions App still works for me but also hydratedUtxoDetails does not disappear from localStorage. I tried sending tx to the wallet to force a refresh of the utxo set and also changing wallets -- in both cases, the field stayed there. So I think as it stands, this may only work for newly created wallets. Do you think it's necessary to add this removal to migrateLegacyWallet function, or use some other approach to ensure it is removed? If the goal is to clean up the storage and improve code readability, we probably should make sure it happens for all users and not just new users. Comment Actions
Comment Actions I'm still seeing some weird behavior here. I am able to see hydratedUtxoDetails disappear from wallet.state in local storage, but only after sending a transaction. After receiving a transaction, which does update the utxo set and state --- it's still there. I'm also seeing this:
Need to do some more digging on why we are seeing these behaviors. Otherwise, the perceived benefit of getting rid of this is negligible to the potential risk. |