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

Sweeping private key broken? #1066

Closed
nomnombtc opened this issue Mar 6, 2015 · 0 comments
Closed

Sweeping private key broken? #1066

nomnombtc opened this issue Mar 6, 2015 · 0 comments

Comments

@nomnombtc
Copy link
Contributor

Hello,

I just tried to sweep a privatekey (from bitcoin-qt 0.10.0, starts with L)
into a new created electrum (2.0.1) wallet, but it fails with this:

tx.sign(), keypairs: {'02717541e595e42e630d877b32b80bb190f5fa075aea35cb5301bd1f4615225952': 'LoLprivatekeygoeshere'}
is_complete False
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/main_window.py", line 2593, in sweep_key_dialog
    self.show_transaction(tx)
  File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/main_window.py", line 601, in show_transaction
    d = transaction_dialog.TxDialog(tx, self)
  File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/transaction_dialog.py", line 108, in __init__
    self.update()
  File "/usr/lib64/python2.7/site-packages/electrum_gui/qt/transaction_dialog.py", line 138, in update
    if self.wallet.can_sign(self.tx):
  File "/usr/lib64/python2.7/site-packages/electrum/wallet.py", line 1016, in can_sign
    if self.can_sign_xpubkey(x):
  File "/usr/lib64/python2.7/site-packages/electrum/wallet.py", line 1050, in can_sign_xpubkey
    if x_pubkey[0:2] in ['02','03','04']:
TypeError: 'NoneType' object has no attribute '__getitem__'
@ecdsa ecdsa closed this as completed in 8852ad5 Mar 8, 2015
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

1 participant