Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronizing issue! #55

Open
karim-kgawad89 opened this issue Apr 6, 2021 · 1 comment
Open

Synchronizing issue! #55

karim-kgawad89 opened this issue Apr 6, 2021 · 1 comment

Comments

@karim-kgawad89
Copy link

Traceback

Traceback (most recent call last):
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\main_window.py", line 76, in onPress
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\main_window.py", line 1951, in 
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\__init__.py", line 176, in show_network_dialog
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\network_dialog.py", line 48, in __init__
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\network_dialog.py", line 319, in __init__
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum_gui\qt\network_dialog.py", line 360, in update
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum\blockchain.py", line 178, in get_name
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum\blockchain.py", line 447, in get_hash
  File "site-packages\electrumg-3.2.1-py3.5.egg\electrum\blockchain.py", line 422, in read_header
Exception: Expected to read a full header. This was only 0 bytes

Additional information

  • ElectrumG version: 3.2.1
  • Operating system: Windows-10-10.0.18362-SP0
  • Wallet type: standard
  • Locale: en_US
  • Testnet: False
  • Regtest: False
@MentalNomad
Copy link

See also: BTG Forum Post

This problem might be fixed by deleting the blockchain headers and letting ElectrumG re-sync them from the servers. Here's how:

  1. Exit ElectrumG. (On Windows, Quitting the wallet isn't enough; that just shrinks the app. Make sure to right-click and Exit from the task bar.)
  2. Navigate to your ElectrumG data folder.
    On Windows, it's normally in C:\Users\<usernme>\AppData\Roaming\ElectrumG (see note below)
  3. Delete the blockchain_headers file and the forks folder.
  4. Start ElectrumG again.

Do not delete the wallets folder! That's where the critical information is for accessing your wallets and coins. If in any doubt, make a backup copy of your wallets folder.

After restarting, ElectrumG should repeat the Bootstrap process and then re-sync the block headers from an ElectrumX server. This may take a couple of hours; on my run-of-the-mill desktop & internet connection, it took under two hours for over 600,000 block headers to sync.


note: If this is not where your ElectrumG folder is, then from the ElectrumG menu, do a File - Open and see where your wallets folder is. The default is inside the ElectrumG data folder, so this will show you where that is. But again, do not delete the wallets folder!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants