1
0

import keys into wallet from command line; do not use separate file

This commit is contained in:
thomasv
2011-12-20 12:37:48 +01:00
parent b5f9ad4832
commit 651ec15008
2 changed files with 51 additions and 23 deletions

View File

@@ -367,6 +367,11 @@ def change_password_dialog(wallet, parent, icon):
wallet.use_encryption = (new_password != '')
wallet.seed = wallet.pw_encode( seed, new_password)
for k in wallet.imported_keys.keys():
a = wallet.imported_keys[k]
b = wallet.pw_decode(a, password)
c = wallet.pw_encode(b, new_password)
wallet.imported_keys[k] = c
wallet.save()
if icon: