From 2ca8122c9661ac7d660c7751e4ae7df4886731e6 Mon Sep 17 00:00:00 2001 From: Richard Ulrich Date: Tue, 26 May 2015 00:06:28 +0200 Subject: [PATCH 1/2] restricting to one account so that at least it doesn't crash --- plugins/btchipwallet.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index 6c7d3a5eb..f6748f808 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -130,7 +130,12 @@ class BTChipWallet(BIP32_HD_Wallet): return 'create_accounts' def can_create_accounts(self): - return True + return False + + def synchronize(self): + # synchronize existing accounts + BIP32_Wallet.synchronize(self) + # no further accounts for the moment def can_change_password(self): return False From b24df0cbfae6d3937be96a129e3467159e247acd Mon Sep 17 00:00:00 2001 From: Richard Ulrich Date: Tue, 26 May 2015 00:09:26 +0200 Subject: [PATCH 2/2] added import --- plugins/btchipwallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py index f6748f808..0318c91bd 100644 --- a/plugins/btchipwallet.py +++ b/plugins/btchipwallet.py @@ -14,7 +14,7 @@ from electrum.bitcoin import EncodeBase58Check, DecodeBase58Check, public_key_to from electrum.i18n import _ from electrum.plugins import BasePlugin, hook from electrum.transaction import deserialize -from electrum.wallet import BIP32_HD_Wallet +from electrum.wallet import BIP32_HD_Wallet, BIP32_Wallet from electrum.util import format_satoshis import hashlib