mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
use block_number=0 for no server; -1 means unknown session
This commit is contained in:
parent
458381f79d
commit
542fcda52e
1 changed files with 4 additions and 2 deletions
|
@ -717,6 +717,8 @@ if __name__ == '__main__':
|
|||
out = server.blockchain.transaction.broadcast(sys.argv[2])
|
||||
elif cmd == 'b':
|
||||
out = server.blocks()
|
||||
else:
|
||||
out = "Unknown command: '%s'" % cmd
|
||||
print out
|
||||
sys.exit(0)
|
||||
|
||||
|
@ -751,10 +753,10 @@ if __name__ == '__main__':
|
|||
block_number = store.get_block_number(1)
|
||||
except IOError:
|
||||
print "IOError: cannot reach bitcoind"
|
||||
block_number = -1
|
||||
block_number = 0
|
||||
except:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
block_number = -1
|
||||
block_number = 0
|
||||
finally:
|
||||
dblock.release()
|
||||
time.sleep(10)
|
||||
|
|
Loading…
Add table
Reference in a new issue