mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
* CLI: read gap limit on create/restore wallet.
This commit is contained in:
parent
4fa237315e
commit
05e2b01691
1 changed files with 2 additions and 3 deletions
|
@ -109,15 +109,14 @@ if __name__ == '__main__':
|
||||||
host = raw_input("server (default:%s):"%interface.host)
|
host = raw_input("server (default:%s):"%interface.host)
|
||||||
port = raw_input("port (default:%d):"%interface.port)
|
port = raw_input("port (default:%d):"%interface.port)
|
||||||
fee = raw_input("fee (default:%s):"%( str(Decimal(wallet.fee)/100000000)) )
|
fee = raw_input("fee (default:%s):"%( str(Decimal(wallet.fee)/100000000)) )
|
||||||
|
gap = raw_input("gap limit (default 5):")
|
||||||
if fee: wallet.fee = float(fee)
|
if fee: wallet.fee = float(fee)
|
||||||
if host: interface.host = host
|
if host: interface.host = host
|
||||||
if port: interface.port = int(port)
|
if port: interface.port = int(port)
|
||||||
|
if gap: wallet.gap_limit = int(gap)
|
||||||
seed = raw_input("if you are restoring an existing wallet, enter the seed. otherwise just press enter: ")
|
seed = raw_input("if you are restoring an existing wallet, enter the seed. otherwise just press enter: ")
|
||||||
wallet.gap_limit = 5
|
|
||||||
if seed:
|
if seed:
|
||||||
wallet.seed = seed
|
wallet.seed = seed
|
||||||
gap = raw_input("gap limit (default 5):")
|
|
||||||
if gap: wallet.gap_limit = int(gap)
|
|
||||||
print "recovering wallet..."
|
print "recovering wallet..."
|
||||||
wallet.synchronize()
|
wallet.synchronize()
|
||||||
if wallet.is_found():
|
if wallet.is_found():
|
||||||
|
|
Loading…
Add table
Reference in a new issue