Browse Source

restore from mpk (text)

283
ThomasV 12 years ago
parent
commit
ec11dac3af
  1. 10
      electrum

10
electrum

@ -315,10 +315,14 @@ if __name__ == '__main__':
if not seed: if not seed:
sys.exit("Error: No seed") sys.exit("Error: No seed")
wallet.seed = str(seed) if len(seed) == 128:
wallet.init_mpk( wallet.seed ) wallet.seed = None
if not options.offline: wallet.master_public_key = seed
else:
wallet.seed = str(seed)
wallet.init_mpk( wallet.seed )
if not options.offline:
interface = Interface(config) interface = Interface(config)
interface.start() interface.start()
wallet.interface = interface wallet.interface = interface

Loading…
Cancel
Save