JoinSEEDS / seeds_light_wallet

http://www.joinseeds.earth/
MIT License
42 stars 22 forks source link

Token models don't load on cold boot. #1954

Open chuck-h opened 2 weeks ago

chuck-h commented 2 weeks ago

Describe the bug Token models don't load because hard-coded default url (https://api.telosfoundation.io) is stale and remote-config is slow. This occurs on cold boot but subsequent app starts are ok.

To Reproduce Steps to reproduce the behavior:

  1. Kill app and delete memory
  2. Install app (start debugger on dev build)
  3. Join as an account which has ecosystem tokens
  4. Only the hardcoded currency cards show up Observe startup in debugger image apply patch with delay image observe startup with patch in debugger image

Current behavior Token models don't load on cold boot

Expected behavior Token models do load on cold boot

Screenshots

Platform & App Version

Additional context We can fix this by hardcoding a currently valid url for init, but that will eventually go stale and misses the point of using remote_config. This behavior of remote config seems wrong, debug message shows we completed activation: image

Go figure. ¯_(ツ)_/¯

See also https://github.com/JoinSEEDS/seeds_light_wallet/issues/1950 on general api robustness.

n13 commented 2 weeks ago

Sounds pretty serious.