commit 6a876775c442b261442b0b6ba2b76383d642824c
parent 2b6c848ed9a157ff58659c048cd2161e914bf535
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 13 Oct 2017 04:37:39 +0200
Merge pull request #3024 from SomberNight/fix_convert_v14_redeem
fix: storage.convert_version_14() is missing redeem_scripts
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/storage.py b/lib/storage.py
@@ -352,7 +352,11 @@ class WalletStorage(PrintError):
for pubkey in pubkeys:
addr = bitcoin.pubkey_to_address('p2pkh', pubkey)
assert addr in addresses
- d[addr] = { 'pubkey':pubkey, 'type':'p2pkh'}
+ d[addr] = {
+ 'pubkey': pubkey,
+ 'redeem_script': None,
+ 'type': 'p2pkh'
+ }
self.put('addresses', d)
self.put('pubkeys', None)
self.put('wallet_type', 'imported')