mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
add 'sync' command
This commit is contained in:
parent
06280a412e
commit
b39b3e3485
1 changed files with 6 additions and 0 deletions
|
@ -615,6 +615,11 @@ class Commands:
|
||||||
self.network.send([('blockchain.address.subscribe', [address])], callback)
|
self.network.send([('blockchain.address.subscribe', [address])], callback)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@command('wn')
|
||||||
|
def sync(self):
|
||||||
|
""" wait until wallet is synchronized """
|
||||||
|
return self.wallet.wait_until_synchronized()
|
||||||
|
|
||||||
@command('')
|
@command('')
|
||||||
def help(self):
|
def help(self):
|
||||||
# for the python console
|
# for the python console
|
||||||
|
@ -741,6 +746,7 @@ def get_parser():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
parents=[parent_parser],
|
parents=[parent_parser],
|
||||||
epilog="Run 'electrum help <command>' to see the help for a command")
|
epilog="Run 'electrum help <command>' to see the help for a command")
|
||||||
|
parser.add_argument("-o", "--offline", action="store_true", dest="offline", default=False, help="Run offline")
|
||||||
subparsers = parser.add_subparsers(dest='cmd', metavar='<command>')
|
subparsers = parser.add_subparsers(dest='cmd', metavar='<command>')
|
||||||
# gui
|
# gui
|
||||||
parser_gui = subparsers.add_parser('gui', parents=[parent_parser], description="Run Electrum's Graphical User Interface.", help="Run GUI (default)")
|
parser_gui = subparsers.add_parser('gui', parents=[parent_parser], description="Run Electrum's Graphical User Interface.", help="Run GUI (default)")
|
||||||
|
|
Loading…
Add table
Reference in a new issue