pooler / electrum-ltc

Electrum-LTC Litecoin wallet
https://electrum-ltc.org
MIT License
194 stars 102 forks source link

importprivkey traceback and breaks sync #2

Closed wtogami closed 10 years ago

wtogami commented 10 years ago

importprivkey("<privkey exported from litecoin-qt>")

Results in this traceback and synchronization entirely fails thereafter even after a restart. The wallet is effectively broken by importprivkey.

Exception in thread Thread-13:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
    self.run()
  File "/home/user/work/electrum-ltc/lib/wallet.py", line 1563, in run
    self.run_interface()
  File "/home/user/work/electrum-ltc/lib/wallet.py", line 1682, in run_interface
    tx = Transaction(result)
  File "/home/user/work/electrum-ltc/lib/transaction.py", line 379, in __init__
    self.deserialize()
  File "/home/user/work/electrum-ltc/lib/transaction.py", line 571, in deserialize
    d['inputs'].append(self.parse_input(vds))
  File "/home/user/work/electrum-ltc/lib/transaction.py", line 589, in parse_input
    pubkeys, signatures, address = get_address_from_input_script(scriptSig)
  File "/home/user/work/electrum-ltc/lib/transaction.py", line 317, in get_address_from_input_script
    assert sig[-2:] == '01'
AssertionError
pooler commented 10 years ago

I've tried importing a few addresses of mine, including a couple with a high number of transactions, but was unable to reproduce this issue. All addresses were imported without problems, and were loaded correctly on restart.

Are you using the latest git master?

wozz commented 10 years ago

This is a duplicate of this problem: https://github.com/spesmilo/electrum/issues/563

For me, it was breaking on certain coinbase transactions, usually from p2pool.

wtogami commented 10 years ago

Fixed