additional fix for #793
This commit is contained in:
parent
449feddaaf
commit
1a8425ff5d
|
@ -166,10 +166,11 @@ if __name__ == '__main__':
|
||||||
# create watching_only wallet
|
# create watching_only wallet
|
||||||
config = electrum.SimpleConfig({'wallet_path':wallet_path})
|
config = electrum.SimpleConfig({'wallet_path':wallet_path})
|
||||||
storage = electrum.WalletStorage(config)
|
storage = electrum.WalletStorage(config)
|
||||||
wallet = electrum.wallet.NewWallet(storage)
|
|
||||||
if not storage.file_exists:
|
if not storage.file_exists:
|
||||||
wallet.seed = ''
|
print "creating wallet file"
|
||||||
wallet.create_watching_only_wallet(xpub)
|
wallet = electrum.wallet.Wallet.from_xpub(xpub, storage)
|
||||||
|
else:
|
||||||
|
wallet = electrum.wallet.Wallet(storage)
|
||||||
|
|
||||||
wallet.synchronize = lambda: None # prevent address creation by the wallet
|
wallet.synchronize = lambda: None # prevent address creation by the wallet
|
||||||
wallet.start_threads(network)
|
wallet.start_threads(network)
|
||||||
|
|
Loading…
Reference in New Issue