Browse Source

Merge #801: Fix #775, provide wtype to get_wallet_cls

67791ed Fix #775, provide wtype to get_wallet_cls (Nicolas Kuttler)
master
Adam Gibson 5 years ago
parent
commit
09d906c25f
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 5
      scripts/convert_old_wallet.py

5
scripts/convert_old_wallet.py

@ -9,7 +9,8 @@ from pyaes import AESModeOfOperationCBC, Decrypter
from jmbase import JM_APP_NAME
from jmclient import Storage, load_program_config, BTCEngine
from jmclient.wallet_utils import get_password, get_wallet_cls,\
cli_get_wallet_passphrase_check, get_wallet_path
cli_get_wallet_passphrase_check, get_wallet_path, \
get_configured_wallet_type
class ConvertException(Exception):
@ -75,7 +76,7 @@ def new_wallet_from_data(data, file_name):
return False
storage = Storage(file_name, create=True, password=new_pw)
wallet_cls = get_wallet_cls()
wallet_cls = get_wallet_cls(wtype=get_configured_wallet_type(False))
kwdata = {
'entropy': data['entropy'],

Loading…
Cancel
Save