BeamMW / android-wallet

Beam Android Wallet
https://beam.mw
Apache License 2.0
36 stars 21 forks source link

Connecting to network fails when a bootstrap node address cannot be resolved #572

Closed k98kurz closed 2 years ago

k98kurz commented 3 years ago

Describe the bug If the app fails to resolve a bootstrap node domain name into an accessible IP address, connecting to the network totally fails.

To Reproduce Steps to reproduce the behaviour:

  1. Experience a DNS issue with a bootstrap node when starting the app.
  2. Sit there confused how a "decentralized" program can fail so spectacularly when a single central server goes down.

Expected behaviour If one bootstrap node cannot be reached, a second one should be tried, and then a third, etc, until a connection is made. Maybe even cache some info about other nodes on the network besides the bootstrap nodes. Seems like a major design flaw to have such a fragile mechanism for connecting to the network.

Setup OS: Android 11

k98kurz commented 3 years ago

Syncing with blockchain stalls out at "Connecting to Mobile node". This is completely unusable since the update to v6.0.

k98kurz commented 3 years ago

At the very least, allow users to connect to a known good peer. The inability to properly bootstrap a node will kill this project.