1
0

storage: replace STO_EV_* ints with IntEnum

This commit is contained in:
SomberNight
2019-09-04 13:31:49 +02:00
parent 54776ca1d9
commit a42a773d19
5 changed files with 32 additions and 29 deletions

View File

@@ -45,7 +45,7 @@ from electrum.wallet import Multisig_Wallet, Deterministic_Wallet
from electrum.i18n import _
from electrum.plugin import BasePlugin, hook
from electrum.util import NotEnoughFunds, UserFacingException
from electrum.storage import STO_EV_USER_PW
from electrum.storage import StorageEncryptionVersion
from electrum.network import Network
from electrum.base_wizard import BaseWizard
from electrum.logging import Logger
@@ -594,7 +594,7 @@ class TrustedCoinPlugin(BasePlugin):
k1.update_password(None, password)
wizard.data['x1/'] = k1.dump()
wizard.data['x2/'] = k2.dump()
wizard.pw_args = password, encrypt_storage, STO_EV_USER_PW
wizard.pw_args = password, encrypt_storage, StorageEncryptionVersion.USER_PASSWORD
self.go_online_dialog(wizard)
def restore_wallet(self, wizard):
@@ -642,7 +642,7 @@ class TrustedCoinPlugin(BasePlugin):
xpub3 = make_xpub(get_signing_xpub(xtype), long_user_id)
k3 = keystore.from_xpub(xpub3)
wizard.data['x3/'] = k3.dump()
wizard.pw_args = password, encrypt_storage, STO_EV_USER_PW
wizard.pw_args = password, encrypt_storage, StorageEncryptionVersion.USER_PASSWORD
wizard.terminate()
def create_remote_key(self, email, wizard):