electrum
electrum copied to clipboard
AssertionError on getbalance
I was using 1.5.7, but had an issue sending coins using the GUI -- I was getting a reproducible "list index out of range" error on the send screen when I tried to submit my transaction. So I upgraded to 1.7.2 using:
sudo pip install http://download.electrum.org/download/Electrum-1.7.2.tar.gz#md5=510e66e9ac2d957d5286889b050d2478
Now nothing works. The GUI shows no data, and the status is stuck on "synchronizing". The command-line client can list the addresses, but can't get their balances, either with -b or with getbalance.
$ electrum -v getbalance
path /home/ryan/.electrum/electrum.dat
Connected to electrum.pdmc.net:50001
missing tx [*** edited to remove list of what looks like all my BTC transactions ***]
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 998, in run
new_addresses = self.wallet.synchronize()
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 393, in synchronize
new += self.synchronize_account(account)
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 386, in synchronize_account
new += self.synchronize_sequence(account, 0)
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 375, in synchronize_sequence
new_addresses.append( self.create_new_address(account, for_change) )
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 297, in create_new_address
address = self.get_new_address( account, for_change, n)
File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 305, in get_new_address
return self.sequences[account].get_address((for_change, n))
File "/usr/local/lib/python2.7/dist-packages/electrum/bitcoin.py", line 443, in get_address
pubkey = self.get_pubkey(sequence)
File "/usr/local/lib/python2.7/dist-packages/electrum/bitcoin.py", line 460, in get_pubkey
master_public_key = ecdsa.VerifyingKey.from_string( mpk.decode('hex'), curve = SECP256k1 )
File "/usr/local/lib/python2.7/dist-packages/ecdsa/keys.py", line 34, in from_string
(len(string), curve.verifying_key_length)
AssertionError: (0, 64)
downloaded all chunks
verify header: 000000000000014b8ac503e5beda35f912d764f9ea36ce0dc1f3342cb6155c6c 229145
Created new wallet, reimported keys, seems ok now.