LBRY-Vault/electrum
SomberNight 1bd9b3a66a
commands: fix "restore" cmd
Previously commands did not run on the asyncio thread but now they do.
"restore" was polling like "while 1: time.sleep()", blocking the event loop.

Now "restore" does not sync the wallet; which is actually cleaner
as previously this wallet would never get unloaded from the daemon (syncing forever).

This is also symmetric with the "create" cmd which also does not try to sync with the network.

However now it became difficult to write a script that restores a wallet and wants to wait
until it gets synced. Workaround for now is to poll with "list_wallets" whether it's synced.

We could create a new command that blocks until the loaded wallet gets synced.
2019-09-04 20:15:54 +02:00
..
gui storage: replace STO_EV_* ints with IntEnum 2019-09-04 13:31:49 +02:00
plugins fix #5617 2019-09-04 13:53:38 +02:00
scripts scripts: simplify quick_start 2019-02-28 20:26:30 +01:00
tests commands: fix "restore" cmd 2019-09-04 20:15:54 +02:00
wordlist file reorganization with top-level module 2018-07-13 14:01:37 +02:00
www@cfab42bfc1 fix submodule 2019-09-04 12:39:02 +02:00
__init__.py logging: cli options to filter for modules using -v 2019-05-02 15:19:10 +02:00
address_synchronizer.py wallet.add_hw_info: also store "is_change" in output_info 2019-09-03 14:34:10 +02:00
base_crash_reporter.py added trigger_crash method for testing crash reporter 2019-07-04 18:06:21 +02:00
base_wizard.py fix #5617 2019-09-04 13:53:38 +02:00
bip32.py wallet: stricter validation in export_private_key 2019-06-12 18:09:38 +02:00
bitcoin.py bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness 2019-08-20 09:03:09 +02:00
blockchain.py logging: basics 2019-05-02 15:19:03 +02:00
channel_db.py do not raise exception when add_own_channel adds channel update from the cache 2019-09-04 08:01:08 +02:00
checkpoints.json update block header checkpoints 2019-08-09 18:59:21 +02:00
checkpoints_testnet.json update block header checkpoints 2019-08-09 18:59:21 +02:00
coinchooser.py wallet: fix type error in _bump_fee_through_decreasing_outputs 2019-07-04 17:23:34 +02:00
commands.py commands: fix "restore" cmd 2019-09-04 20:15:54 +02:00
constants.py move lnworker.first_block to constants 2019-08-20 09:03:11 +02:00
contacts.py logging: basics 2019-05-02 15:19:03 +02:00
crypto.py update lnbase after crypto refactoring 2019-08-20 09:03:09 +02:00
currencies.json Removed dead exchange. 2019-07-21 13:13:51 +02:00
daemon.py disable http server by default 2019-09-04 13:07:44 +02:00
dnssec.py change many str(e) to repr(e) as some exceptions were cryptic 2019-07-17 20:12:52 +02:00
ecc.py persist channel db on disk. verify channel gossip sigs. 2019-08-20 09:03:10 +02:00
ecc_fast.py ecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without 2019-08-20 09:03:10 +02:00
electrum file reorganization with top-level module 2018-07-13 14:01:37 +02:00
exchange_rate.py network: handle main_taskgroup dying better. passthrough CancelledError 2019-08-30 19:46:25 +02:00
i18n.py move get_default_language to gui.qt.util 2018-09-23 14:11:50 +05:00
interface.py wallet: fix offline hw wallet signing when not specifying --offline 2019-07-29 13:27:37 +02:00
json_db.py storage: better error msg on unsupported seed version 2019-08-09 18:11:50 +02:00
keystore.py wallet/keystore: small inheritance clean-up 2019-09-03 16:24:05 +02:00
lightning.json update lightning.json 2019-08-20 09:03:11 +02:00
lnaddr.py lnaddr: Pull in Bech32 and Base58 prefixes from constants 2019-08-25 13:15:13 +00:00
lnchannel.py Restructure invoices and requests (WIP) 2019-09-02 15:35:44 +02:00
lnhtlc.py lnworker: rework "is_dangerous" 2019-08-20 09:03:12 +02:00
lnmsg.py fix encode_msg: optional fields were not sent 2019-08-20 09:03:12 +02:00
lnonion.py lnpeer: add a few sanity checks to payment-forwarding (and related) 2019-08-20 09:03:12 +02:00
lnpeer.py add_own_channel does not need to be async 2019-09-03 21:01:45 +02:00
lnrouter.py fix Flake8 tests 2019-08-20 09:03:12 +02:00
lnsweep.py Revert "Remove early return in create_sweeptxs_for_our_ctx." 2019-08-30 17:40:46 +02:00
lntransport.py lnhtlc: local update raw messages must not be deleted before acked 2019-08-20 09:03:12 +02:00
lnutil.py lnpeer: use correct failure codes in _maybe_forward_htlc 2019-08-20 09:03:12 +02:00
lnverifier.py verify node and channel announcements before entering sql lock 2019-08-20 09:03:11 +02:00
lnwatcher.py remove unused import 2019-08-20 09:03:12 +02:00
lnworker.py follow-up a4b24df4bb 2019-09-03 17:53:11 +02:00
logging.py Travis CI: Use flake8 to find Python syntax errors and undefined names (#5467) 2019-08-11 22:35:23 +00:00
mnemonic.py commands: change API of "make_seed" and "create" commands 2019-08-09 22:02:01 +02:00
msqr.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
network.py network: handle main_taskgroup dying better. passthrough CancelledError 2019-08-30 19:46:25 +02:00
old_mnemonic.py mv "electrum seed" stuff from bitcoin.py to mnemonic.py 2019-02-22 18:01:54 +01:00
paymentrequest.proto file reorganization with top-level module 2018-07-13 14:01:37 +02:00
paymentrequest.py Restructure invoices and requests (WIP) 2019-09-02 15:35:44 +02:00
paymentrequest_pb2.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
pem.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plot.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plugin.py hw wallets: show DeviceUnpairableError nicely in qt gui 2019-09-03 19:19:58 +02:00
qrscanner.py rename contrib/build-osx as contrib/osx. Move QRReader submodule there. 2018-11-29 11:39:57 +01:00
ripemd.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
rsakey.py no more "import *" 2019-02-11 20:21:24 +01:00
segwit_addr.py avoid duplicating bech32 module 2019-08-20 09:03:09 +02:00
servers.json Remove electrumx.ml because of phishing (#5596) 2019-08-29 12:37:33 +00:00
servers_regtest.json file reorganization with top-level module 2018-07-13 14:01:37 +02:00
servers_testnet.json servers: update testnet default list 2019-04-27 23:10:12 +02:00
simple_config.py Rewrite JsonRPC requests using asyncio. 2019-08-20 09:03:12 +02:00
sql_db.py get rid of sql_alchemy 2019-08-20 09:03:12 +02:00
storage.py storage: replace STO_EV_* ints with IntEnum 2019-09-04 13:31:49 +02:00
synchronizer.py change many str(e) to repr(e) as some exceptions were cryptic 2019-07-17 20:12:52 +02:00
transaction.py wallet.add_hw_info: also store "is_change" in output_info 2019-09-03 14:34:10 +02:00
util.py Restructure invoices and requests (WIP) 2019-09-02 15:35:44 +02:00
verifier.py post rebase fixes 2019-08-20 09:03:11 +02:00
version.py commands: change API of "make_seed" and "create" commands 2019-08-09 22:02:01 +02:00
wallet.py commands: fix "restore" cmd 2019-09-04 20:15:54 +02:00
x509.py logging: cli options to filter for modules using -v 2019-05-02 15:19:10 +02:00