Browse Source

revert bad change in convert_old_wallet.py

master
undeath 7 years ago
parent
commit
a86e154b15
No known key found for this signature in database
GPG Key ID: F0DF5443BD2F3520
  1. 8
      scripts/convert_old_wallet.py

8
scripts/convert_old_wallet.py

@ -17,6 +17,11 @@ class ConvertException(Exception):
pass
def get_max_mixdepth(data):
return max(1, len(data.get('index_cache', [1])) - 1,
*data.get('imported', {}).keys())
def is_encrypted(wallet_data):
return 'encrypted_seed' in wallet_data or 'encrypted_entropy' in wallet_data
@ -68,7 +73,8 @@ def new_wallet_from_data(data, file_name):
kwdata = {
'entropy': data['entropy'],
'timestamp': data.get('creation_time')
'timestamp': data.get('creation_time'),
'max_mixdepth': get_max_mixdepth(data)
}
if 'entropy_ext' in data:

Loading…
Cancel
Save