1
0

new seed_version: remove whitespaces only between CJK characters

This commit is contained in:
ThomasV
2014-09-13 19:31:05 +02:00
parent 1df007483e
commit cef75e9e7b
4 changed files with 59 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ from amountedit import AmountEdit
import sys
import threading
from electrum.plugins import run_hook
from electrum.mnemonic import prepare_seed
MSG_ENTER_ANYTHING = _("Please enter a wallet seed, a master public key, a list of Bitcoin addresses, or a list of private keys")
MSG_SHOW_MPK = _("This is your master public key")
@@ -114,8 +114,7 @@ class InstallWizard(QDialog):
r = self.enter_seed_dialog(MSG_VERIFY_SEED, sid, func)
if not r:
return
if r != seed:
if prepare_seed(r) != prepare_seed(seed):
QMessageBox.warning(None, _('Error'), _('Incorrect seed'), _('OK'))
return False
else: