spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.33k stars 3.05k forks source link

improve wallet synchronization #2094

Open ecdsa opened 7 years ago

ecdsa commented 7 years ago

synchronization of large wallets is slow. synchronizaion could be separated in stages, with the existing protocol:

  1. address generation. this requires only address.get_status
  2. request UTXOs for each address
  3. request transactions with UTXOs
  4. request merkle branches
  5. request full histories
  6. request spent-only transactions the wallet balance can be displayed when 3 is completed.
bauerj commented 6 years ago

Once this is done, we can also show a progress bar to the user, indicating how far the synchronization has proceeded.

SomberNight commented 3 years ago

in the context of potential protocol changes to help this, tangentially related: https://github.com/kyuupichan/electrumx/issues/82 https://github.com/kyuupichan/electrumx/issues/348