Lily-Technologies / lily-wallet

The best way to secure your bitcoin.
https://lily-wallet.com
Other
94 stars 15 forks source link

Blank Receive screen when network is down #115

Open BitcoinQnA opened 1 year ago

BitcoinQnA commented 1 year ago

If Lili is not successfully connected to an Electrum Server, tapping the receive button produces a blank screen. The only way to move forward is to close and reopen the app.

After successfully connecting to a server, the Receive screen is blank once more. Only after a second restart does the Receive screen show as expected.

Version - 1.2.0 Issue replicated on Linux and MacOS.

Side note - Lili did not automatically connect to a server upon first launch.

KayBeSee commented 1 year ago

Temporarily fixed via 45a059b9e794aec4bb9fdaf13c5ac945a645fe64

There are two things happening here:

First, the default electrum server is down and not allowing users to retrieve data from it. Other wallet software maintains a list of ~5 servers that try to connect on startup. Lily should behave similarly to ensure users are always connected to a server when starting the app.

Second, there isn't an error boundary in the app anymore. There was initially, but it never worked very well. This should be added back in to provide detailed information about why the app broke and allow users to gracefully go back to an error-free page.