MyHush / hush-ng

Hush Next-generation
GNU General Public License v3.0
7 stars 16 forks source link

Showing 0 values for addresses + totals while loading #19

Closed leto closed 6 years ago

leto commented 6 years ago

When first loading, Hush-NG shows me a list of all zaddrs + taddrs very quickly, but all have 0 value and also my total wallet value is 0, for a few more seconds, until all the RPC calls from checking address balances complete and the other RPCs are called. I think this could confuse/scare people

I think reordering how we update will minimize this problem, we should always update the wallet totals and simple network info stats before doing all the address-related RPCs. That fixes the issue of my wallet total looking like it's zero for multiple seconds, and leaves the issue of all addresses looking like they have zero balance. This can be solved by some initial "Updating data" screen, which prevents us from showing a user all their addresses have 0 value, when really we just don't have that data yet.

leto commented 6 years ago

this is related to #18

leto commented 6 years ago

I will consider this closed, as I don't think a user can get confused anymore. I did not actually remove any unconfirmed code or reorder anything (it wasn't trivial), I just changed the defaults to be "Calculating..." instead of 0, which are shown on startup