2013-08-22 03:39:41 -07:00
from PyQt4 . QtGui import *
from PyQt4 . QtCore import *
import PyQt4 . QtCore as QtCore
2013-09-11 04:55:49 -07:00
from electrum . i18n import _
2014-04-29 02:45:39 -07:00
from electrum import Wallet , Wallet_2of2 , Wallet_2of3
2014-04-29 12:04:16 -07:00
import electrum . bitcoin as bitcoin
2013-08-29 07:07:55 -07:00
2014-04-19 11:23:27 -07:00
import seed_dialog
2013-08-22 03:39:41 -07:00
from network_dialog import NetworkDialog
2013-09-24 07:57:12 -07:00
from util import *
2013-08-29 07:07:55 -07:00
from amountedit import AmountEdit
import sys
2013-09-12 10:42:00 -07:00
import threading
2014-04-06 12:38:53 -07:00
from electrum . plugins import run_hook
2013-08-22 03:39:41 -07:00
2014-04-29 12:19:42 -07:00
MSG_ENTER_ANYTHING = _ ( " Please enter a wallet seed, a master public key, a list of Bitcoin addresses, or a list of private keys " )
2014-05-09 04:49:05 -07:00
MSG_SHOW_MPK = _ ( " This is your master public key " )
2014-04-29 12:19:42 -07:00
MSG_ENTER_MPK = _ ( " Please enter your master public key " )
2014-05-09 04:49:05 -07:00
MSG_ENTER_COLD_MPK = _ ( " Please enter the master public key of your cosigning wallet " )
2014-04-29 12:19:42 -07:00
MSG_ENTER_SEED_OR_MPK = _ ( " Please enter a wallet seed, or master public key " )
MSG_VERIFY_SEED = _ ( " Your seed is important! " ) + " \n " + _ ( " To make sure that you have properly saved your seed, please retype it here. " )
2013-08-22 03:39:41 -07:00
class InstallWizard ( QDialog ) :
2013-09-10 05:20:44 -07:00
def __init__ ( self , config , network , storage ) :
2013-08-22 03:39:41 -07:00
QDialog . __init__ ( self )
self . config = config
2013-09-10 05:20:44 -07:00
self . network = network
2013-09-01 06:26:52 -07:00
self . storage = storage
2013-09-12 10:42:00 -07:00
self . setMinimumSize ( 575 , 400 )
self . setWindowTitle ( ' Electrum ' )
self . connect ( self , QtCore . SIGNAL ( ' accept ' ) , self . accept )
2013-08-22 03:39:41 -07:00
2013-11-03 02:03:45 -08:00
self . stack = QStackedLayout ( )
self . setLayout ( self . stack )
def set_layout ( self , layout ) :
w = QWidget ( )
w . setLayout ( layout )
self . stack . setCurrentIndex ( self . stack . addWidget ( w ) )
2013-08-22 03:39:41 -07:00
def restore_or_create ( self ) :
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
vbox = QVBoxLayout ( )
main_label = QLabel ( _ ( " Electrum could not find an existing wallet. " ) )
vbox . addWidget ( main_label )
2013-09-03 05:32:56 -07:00
grid = QGridLayout ( )
grid . setSpacing ( 5 )
2014-05-09 04:12:07 -07:00
label = QLabel ( _ ( " What do you want to do? " ) )
2013-09-03 05:32:56 -07:00
label . setWordWrap ( True )
grid . addWidget ( label , 0 , 0 )
2014-05-09 04:12:07 -07:00
gb1 = QGroupBox ( )
grid . addWidget ( gb1 , 0 , 0 )
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
group1 = QButtonGroup ( )
b1 = QRadioButton ( gb1 )
2013-09-03 05:32:56 -07:00
b1 . setText ( _ ( " Create new wallet " ) )
b1 . setChecked ( True )
2014-05-09 04:12:07 -07:00
b2 = QRadioButton ( gb1 )
2014-04-19 11:23:27 -07:00
b2 . setText ( _ ( " Restore an existing wallet " ) )
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
group1 . addButton ( b1 )
group1 . addButton ( b2 )
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
grid . addWidget ( b1 , 1 , 0 )
grid . addWidget ( b2 , 2 , 0 )
2013-11-03 02:03:45 -08:00
vbox . addLayout ( grid )
2014-05-09 04:12:07 -07:00
grid2 = QGridLayout ( )
grid2 . setSpacing ( 5 )
label2 = QLabel ( _ ( " Wallet type: " ) )
grid2 . addWidget ( label2 , 3 , 0 )
gb2 = QGroupBox ( )
grid . addWidget ( gb2 , 3 , 0 )
group2 = QButtonGroup ( )
bb1 = QRadioButton ( gb2 )
bb1 . setText ( _ ( " Standard wallet " ) )
bb1 . setChecked ( True )
bb2 = QRadioButton ( gb2 )
bb2 . setText ( _ ( " Wallet with two-factor authentication (plugin) " ) )
bb3 = QRadioButton ( gb2 )
bb3 . setText ( _ ( " Multisig wallet (paired manually) " ) )
grid2 . addWidget ( bb1 , 4 , 0 )
grid2 . addWidget ( bb2 , 5 , 0 )
grid2 . addWidget ( bb3 , 6 , 0 )
group2 . addButton ( bb1 )
group2 . addButton ( bb2 )
group2 . addButton ( bb3 )
vbox . addLayout ( grid2 )
2013-09-12 10:42:00 -07:00
vbox . addStretch ( 1 )
vbox . addLayout ( ok_cancel_buttons ( self , _ ( ' Next ' ) ) )
2014-05-09 04:12:07 -07:00
self . set_layout ( vbox )
2013-09-12 10:42:00 -07:00
if not self . exec_ ( ) :
2014-05-09 04:12:07 -07:00
return None , None
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
action = ' create ' if b1 . isChecked ( ) else ' restore '
if bb1 . isChecked ( ) :
t = ' standard '
elif bb2 . isChecked ( ) :
t = ' multisig_plugin '
elif bb3 . isChecked ( ) :
t = ' multisig_manual '
2013-09-03 05:32:56 -07:00
2014-05-09 04:12:07 -07:00
return action , t
2013-08-22 03:39:41 -07:00
2014-04-19 11:23:27 -07:00
def verify_seed ( self , seed , sid ) :
2014-04-29 12:19:42 -07:00
r = self . enter_seed_dialog ( MSG_VERIFY_SEED , sid )
2013-09-03 05:32:56 -07:00
if not r :
return
2014-04-06 12:38:53 -07:00
if r != seed :
2013-09-16 20:19:23 -07:00
QMessageBox . warning ( None , _ ( ' Error ' ) , _ ( ' Incorrect seed ' ) , _ ( ' OK ' ) )
2013-08-22 03:39:41 -07:00
return False
else :
return True
2014-04-19 11:23:27 -07:00
def get_seed_text ( self , seed_e ) :
2014-04-22 06:49:32 -07:00
text = unicode ( seed_e . toPlainText ( ) ) . strip ( )
2014-04-22 06:12:36 -07:00
text = ' ' . join ( text . split ( ) )
return text
2013-08-22 03:39:41 -07:00
2013-09-12 10:49:51 -07:00
2014-05-09 04:49:05 -07:00
def is_any ( self , seed_e ) :
2014-04-19 11:23:27 -07:00
text = self . get_seed_text ( seed_e )
2014-04-29 12:04:16 -07:00
return Wallet . is_seed ( text ) or Wallet . is_mpk ( text ) or Wallet . is_address ( text ) or Wallet . is_private_key ( text )
2013-09-12 10:42:00 -07:00
2014-05-09 04:49:05 -07:00
def is_mpk ( self , seed_e ) :
text = self . get_seed_text ( seed_e )
return Wallet . is_mpk ( text )
2013-08-22 03:39:41 -07:00
2014-04-29 12:19:42 -07:00
def enter_seed_dialog ( self , msg , sid ) :
vbox , seed_e = seed_dialog . enter_seed_box ( msg , sid )
2013-09-12 10:42:00 -07:00
vbox . addStretch ( 1 )
2014-04-19 11:23:27 -07:00
hbox , button = ok_cancel_buttons2 ( self , _ ( ' Next ' ) )
vbox . addLayout ( hbox )
button . setEnabled ( False )
2014-05-09 04:49:05 -07:00
seed_e . textChanged . connect ( lambda : button . setEnabled ( self . is_any ( seed_e ) ) )
2013-11-03 02:03:45 -08:00
self . set_layout ( vbox )
2013-09-12 10:42:00 -07:00
if not self . exec_ ( ) :
return
2014-04-19 11:23:27 -07:00
return self . get_seed_text ( seed_e )
2013-08-22 03:39:41 -07:00
2014-05-09 04:49:05 -07:00
def cold_mpk_dialog ( self , xpub_hot ) :
vbox = QVBoxLayout ( )
vbox1 , seed_e1 = seed_dialog . enter_seed_box ( MSG_SHOW_MPK , ' hot ' )
seed_e1 . setText ( xpub_hot )
seed_e1 . setReadOnly ( True )
vbox2 , seed_e2 = seed_dialog . enter_seed_box ( MSG_ENTER_COLD_MPK , ' cold ' )
vbox . addLayout ( vbox1 )
vbox . addLayout ( vbox2 )
vbox . addStretch ( 1 )
hbox , button = ok_cancel_buttons2 ( self , _ ( ' Next ' ) )
vbox . addLayout ( hbox )
button . setEnabled ( False )
f = lambda : button . setEnabled ( self . is_mpk ( seed_e2 ) )
seed_e2 . textChanged . connect ( f )
self . set_layout ( vbox )
if not self . exec_ ( ) :
return
return self . get_seed_text ( seed_e2 )
2014-05-09 04:52:49 -07:00
def double_seed_dialog ( self ) :
2014-04-19 11:23:27 -07:00
vbox = QVBoxLayout ( )
2014-04-29 12:19:42 -07:00
vbox1 , seed_e1 = seed_dialog . enter_seed_box ( MSG_ENTER_SEED_OR_MPK , ' hot ' )
vbox2 , seed_e2 = seed_dialog . enter_seed_box ( MSG_ENTER_SEED_OR_MPK , ' cold ' )
2014-04-19 11:23:27 -07:00
vbox . addLayout ( vbox1 )
vbox . addLayout ( vbox2 )
vbox . addStretch ( 1 )
hbox , button = ok_cancel_buttons2 ( self , _ ( ' Next ' ) )
vbox . addLayout ( hbox )
button . setEnabled ( False )
2014-05-09 04:49:05 -07:00
f = lambda : button . setEnabled ( self . is_any ( seed_e1 ) and self . is_any ( seed_e2 ) )
2014-04-19 11:23:27 -07:00
seed_e1 . textChanged . connect ( f )
seed_e2 . textChanged . connect ( f )
self . set_layout ( vbox )
if not self . exec_ ( ) :
return
return self . get_seed_text ( seed_e1 ) , self . get_seed_text ( seed_e2 )
2014-04-05 01:34:51 -07:00
2013-09-12 07:08:17 -07:00
2013-08-22 03:39:41 -07:00
2013-09-30 07:53:51 -07:00
def waiting_dialog ( self , task , msg = _ ( " Electrum is generating your addresses, please wait. " ) ) :
2013-09-12 10:42:00 -07:00
def target ( ) :
task ( )
self . emit ( QtCore . SIGNAL ( ' accept ' ) )
2013-11-03 02:03:45 -08:00
vbox = QVBoxLayout ( )
2013-09-12 10:42:00 -07:00
self . waiting_label = QLabel ( msg )
vbox . addWidget ( self . waiting_label )
2013-11-03 02:03:45 -08:00
self . set_layout ( vbox )
2013-09-12 10:42:00 -07:00
t = threading . Thread ( target = target )
t . start ( )
self . exec_ ( )
2013-09-03 09:35:46 -07:00
2013-08-22 03:39:41 -07:00
def network_dialog ( self ) :
2013-09-03 05:32:56 -07:00
grid = QGridLayout ( )
grid . setSpacing ( 5 )
2013-10-03 10:09:08 -07:00
label = QLabel ( _ ( " Electrum communicates with remote servers to get information about your transactions and addresses. The servers all fulfil the same purpose only differing in hardware. In most cases you simply want to let Electrum pick one at random if you have a preference though feel free to select a server manually. " ) + " \n \n " \
2013-10-09 18:54:52 -07:00
+ _ ( " How do you want to connect to a server: " ) + " " )
2013-09-30 07:53:51 -07:00
label . setWordWrap ( True )
2013-09-03 05:32:56 -07:00
grid . addWidget ( label , 0 , 0 )
gb = QGroupBox ( )
b1 = QRadioButton ( gb )
b1 . setText ( _ ( " Auto connect " ) )
b1 . setChecked ( True )
b2 = QRadioButton ( gb )
b2 . setText ( _ ( " Select server manually " ) )
2013-10-03 10:09:08 -07:00
#b3 = QRadioButton(gb)
#b3.setText(_("Stay offline"))
2013-09-03 05:32:56 -07:00
grid . addWidget ( b1 , 1 , 0 )
grid . addWidget ( b2 , 2 , 0 )
2013-10-03 10:09:08 -07:00
#grid.addWidget(b3,3,0)
2013-09-03 05:32:56 -07:00
2013-11-03 02:03:45 -08:00
vbox = QVBoxLayout ( )
2013-09-03 05:32:56 -07:00
vbox . addLayout ( grid )
2013-09-12 10:42:00 -07:00
vbox . addStretch ( 1 )
vbox . addLayout ( ok_cancel_buttons ( self , _ ( ' Next ' ) ) )
2013-11-03 02:03:45 -08:00
self . set_layout ( vbox )
2013-09-12 10:42:00 -07:00
if not self . exec_ ( ) :
2013-09-03 05:32:56 -07:00
return
if b2 . isChecked ( ) :
2013-09-10 09:27:32 -07:00
return NetworkDialog ( self . network , self . config , None ) . do_exec ( )
2013-09-03 05:32:56 -07:00
elif b1 . isChecked ( ) :
self . config . set_key ( ' auto_cycle ' , True , True )
return
else :
self . config . set_key ( " server " , None , True )
self . config . set_key ( ' auto_cycle ' , False , True )
return
2013-11-03 02:03:45 -08:00
2014-04-28 07:06:59 -07:00
def show_message ( self , msg , icon = None ) :
2014-04-06 12:38:53 -07:00
vbox = QVBoxLayout ( )
2014-04-28 07:06:59 -07:00
self . set_layout ( vbox )
if icon :
logo = QLabel ( )
logo . setPixmap ( icon )
vbox . addWidget ( logo )
2014-04-06 12:38:53 -07:00
vbox . addWidget ( QLabel ( msg ) )
vbox . addStretch ( 1 )
vbox . addLayout ( close_button ( self , _ ( ' Next ' ) ) )
if not self . exec_ ( ) :
return None
2014-04-28 07:06:59 -07:00
def question ( self , msg , icon = None ) :
2014-04-06 12:38:53 -07:00
vbox = QVBoxLayout ( )
2014-04-28 07:06:59 -07:00
self . set_layout ( vbox )
if icon :
logo = QLabel ( )
logo . setPixmap ( icon )
vbox . addWidget ( logo )
2014-04-06 12:38:53 -07:00
vbox . addWidget ( QLabel ( msg ) )
vbox . addStretch ( 1 )
2014-04-28 06:50:31 -07:00
vbox . addLayout ( ok_cancel_buttons ( self , _ ( ' OK ' ) ) )
2014-04-06 12:38:53 -07:00
if not self . exec_ ( ) :
return None
return True
2013-08-22 03:39:41 -07:00
2014-04-06 12:38:53 -07:00
def show_seed ( self , seed , sid ) :
2014-04-19 11:23:27 -07:00
vbox = seed_dialog . show_seed_box ( seed , sid )
2013-10-03 00:19:09 -07:00
vbox . addLayout ( ok_cancel_buttons ( self , _ ( " Next " ) ) )
2013-11-03 02:03:45 -08:00
self . set_layout ( vbox )
2013-11-12 13:55:42 -08:00
return self . exec_ ( )
2013-08-22 03:39:41 -07:00
2014-04-21 13:09:15 -07:00
def password_dialog ( self ) :
2013-09-12 10:42:00 -07:00
msg = _ ( " Please choose a password to encrypt your wallet keys. " ) + ' \n ' \
+ _ ( " Leave these fields empty if you want to disable encryption. " )
from password_dialog import make_password_dialog , run_password_dialog
2014-04-21 13:09:15 -07:00
self . set_layout ( make_password_dialog ( self , None , msg ) )
return run_password_dialog ( self , None , self ) [ 2 ]
2013-08-22 03:39:41 -07:00
2014-04-06 12:38:53 -07:00
2014-04-28 08:30:48 -07:00
def run ( self , action ) :
2014-04-06 12:38:53 -07:00
2014-04-28 08:30:48 -07:00
if action == ' new ' :
2014-05-09 04:12:07 -07:00
action , t = self . restore_or_create ( )
2013-09-03 01:58:07 -07:00
2014-04-06 12:38:53 -07:00
if action is None :
return
2014-04-29 02:45:39 -07:00
if action == ' create ' :
if t == ' multisig_plugin ' :
action = ' create_2of3_1 '
if t == ' multisig_manual ' :
action = ' create_2of2_1 '
2014-04-28 08:30:48 -07:00
2014-04-29 02:45:39 -07:00
if action in [ ' create ' ] :
2014-04-28 08:30:48 -07:00
wallet = Wallet ( self . storage )
2014-04-29 02:45:39 -07:00
elif action in [ ' create_2of2_1 ' , ' create_2of2_2 ' ] :
wallet = Wallet_2of2 ( self . storage )
2014-04-28 08:30:48 -07:00
if action == ' create ' :
seed = wallet . make_seed ( )
if not self . show_seed ( seed , None ) :
return
if not self . verify_seed ( seed , None ) :
2014-04-06 12:38:53 -07:00
return
2014-04-28 08:30:48 -07:00
password = self . password_dialog ( )
wallet . add_seed ( seed , password )
wallet . create_accounts ( password )
self . waiting_dialog ( wallet . synchronize )
2014-04-06 12:38:53 -07:00
2014-04-29 02:45:39 -07:00
if action == ' create_2of3_1 ' :
2014-04-28 08:30:48 -07:00
run_hook ( ' create_cold_seed ' , self . storage , self )
return
2013-08-22 03:39:41 -07:00
2014-04-28 08:30:48 -07:00
2014-04-29 02:45:39 -07:00
if action in [ ' create_2of2_1 ' , ' create_2of3_2 ' ] :
2014-04-21 13:09:15 -07:00
seed = wallet . make_seed ( )
2014-04-28 08:30:48 -07:00
if not self . show_seed ( seed , ' hot ' ) :
2013-11-12 13:55:42 -08:00
return
2014-04-28 08:30:48 -07:00
if not self . verify_seed ( seed , ' hot ' ) :
2013-09-03 01:58:07 -07:00
return
2014-04-21 13:09:15 -07:00
password = self . password_dialog ( )
2014-04-28 05:58:43 -07:00
wallet . add_seed ( seed , password )
2014-04-29 02:45:39 -07:00
if action == ' create_2of2_1 ' :
# display mpk
action = ' create_2of2_2 '
else :
action = ' create_2of3_3 '
2014-04-06 12:38:53 -07:00
2014-04-29 02:45:39 -07:00
if action == ' create_2of2_2 ' :
2014-05-09 04:49:05 -07:00
xpub_hot = wallet . master_public_keys . get ( " m/ " )
xpub = self . cold_mpk_dialog ( xpub_hot )
2014-04-29 02:45:39 -07:00
if not Wallet . is_mpk ( xpub ) :
return
wallet . add_master_public_key ( " cold/ " , xpub )
wallet . create_account ( )
self . waiting_dialog ( wallet . synchronize )
2014-04-06 12:38:53 -07:00
2014-04-29 02:45:39 -07:00
if action == ' create_2of3_3 ' :
2014-04-28 08:30:48 -07:00
run_hook ( ' create_remote_key ' , wallet , self )
if not wallet . master_public_keys . get ( " remote/ " ) :
return
wallet . create_account ( )
2014-04-19 11:23:27 -07:00
self . waiting_dialog ( wallet . synchronize )
2013-11-12 13:55:42 -08:00
2014-04-28 08:30:48 -07:00
if action == ' restore ' :
2013-12-13 08:30:34 -08:00
2014-04-19 11:23:27 -07:00
if t == ' standard ' :
2014-04-29 12:19:42 -07:00
text = self . enter_seed_dialog ( MSG_ENTER_ANYTHING , None )
2014-04-29 10:33:42 -07:00
if not text :
return
2014-04-19 11:23:27 -07:00
if Wallet . is_seed ( text ) :
2014-04-21 13:09:15 -07:00
password = self . password_dialog ( )
2014-04-19 11:23:27 -07:00
wallet = Wallet . from_seed ( text , self . storage )
2014-04-28 05:58:43 -07:00
wallet . add_seed ( text , password )
2014-04-19 11:23:27 -07:00
wallet . create_accounts ( password )
elif Wallet . is_mpk ( text ) :
wallet = Wallet . from_mpk ( text , self . storage )
2014-04-29 12:04:16 -07:00
elif Wallet . is_address ( text ) :
wallet = Wallet . from_address ( text , self . storage )
elif Wallet . is_private_key ( text ) :
wallet = Wallet . from_private_key ( text , self . storage )
2014-04-19 11:23:27 -07:00
else :
2014-04-20 01:42:13 -07:00
raise
2014-04-19 11:23:27 -07:00
2014-04-29 02:45:39 -07:00
elif t in [ ' multisig_plugin ' , ' multisig_manual ' ] :
2014-04-19 11:23:27 -07:00
r = self . double_seed_dialog ( )
if not r :
return
text1 , text2 = r
2014-04-21 13:09:15 -07:00
password = self . password_dialog ( )
2014-04-29 02:45:39 -07:00
if t == ' multisig_manual ' :
wallet = Wallet_2of2 ( self . storage )
else :
wallet = Wallet_2of3 ( self . storage )
2014-04-19 11:23:27 -07:00
if Wallet . is_seed ( text1 ) :
2014-04-25 08:51:41 -07:00
wallet . add_seed ( text1 , password )
if Wallet . is_seed ( text2 ) :
wallet . add_cold_seed ( text2 , password )
else :
wallet . add_master_public_key ( " cold/ " , text2 )
2014-04-19 11:23:27 -07:00
elif Wallet . is_mpk ( text1 ) :
2014-04-25 08:51:41 -07:00
if Wallet . is_seed ( text2 ) :
wallet . add_seed ( text2 , password )
wallet . add_master_public_key ( " cold/ " , text1 )
else :
wallet . add_master_public_key ( " m/ " , text1 )
wallet . add_master_public_key ( " cold/ " , text2 )
2014-04-19 11:23:27 -07:00
2014-04-29 02:45:39 -07:00
if t == ' 2of3 ' :
run_hook ( ' restore_third_key ' , wallet , self )
2014-04-19 11:23:27 -07:00
2014-04-29 02:45:39 -07:00
wallet . create_account ( )
2014-04-19 11:23:27 -07:00
2014-04-20 01:42:13 -07:00
else :
raise
2014-04-19 11:23:27 -07:00
2013-09-03 01:58:07 -07:00
2013-09-03 05:57:29 -07:00
#if not self.config.get('server'):
2013-11-05 09:55:53 -08:00
if self . network :
2013-12-12 22:30:35 -08:00
if self . network . interfaces :
self . network_dialog ( )
else :
QMessageBox . information ( None , _ ( ' Warning ' ) , _ ( ' You are offline ' ) , _ ( ' OK ' ) )
self . network . stop ( )
2014-01-08 01:36:39 -08:00
self . network = None
2013-08-22 03:39:41 -07:00
2013-09-02 04:41:31 -07:00
# start wallet threads
2013-09-10 05:20:44 -07:00
wallet . start_threads ( self . network )
2013-09-02 04:41:31 -07:00
2013-09-03 05:32:56 -07:00
if action == ' restore ' :
2013-08-22 03:39:41 -07:00
2013-09-28 04:45:49 -07:00
self . waiting_dialog ( lambda : wallet . restore ( self . waiting_label . setText ) )
2013-09-12 10:42:00 -07:00
2013-11-05 09:55:53 -08:00
if self . network :
if wallet . is_found ( ) :
QMessageBox . information ( None , _ ( ' Information ' ) , _ ( " Recovery successful " ) , _ ( ' OK ' ) )
else :
QMessageBox . information ( None , _ ( ' Information ' ) , _ ( " No transactions found for this seed " ) , _ ( ' OK ' ) )
2013-09-12 10:42:00 -07:00
else :
2013-11-05 09:55:53 -08:00
QMessageBox . information ( None , _ ( ' Information ' ) , _ ( " This wallet was restored offline. It may contain more addresses than displayed. " ) , _ ( ' OK ' ) )
2013-08-22 03:39:41 -07:00
2013-09-03 01:09:13 -07:00
return wallet