block_number should return -1 if we know the DB is not up to date
This commit is contained in:
parent
2b628a90d4
commit
252bb945a9
|
@ -749,8 +749,12 @@ if __name__ == '__main__':
|
||||||
store.catch_up()
|
store.catch_up()
|
||||||
memorypool_update(store)
|
memorypool_update(store)
|
||||||
block_number = store.get_block_number(1)
|
block_number = store.get_block_number(1)
|
||||||
|
except IOError:
|
||||||
|
print "IOError: cannot reach bitcoind"
|
||||||
|
block_number = -1
|
||||||
except:
|
except:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
block_number = -1
|
||||||
finally:
|
finally:
|
||||||
dblock.release()
|
dblock.release()
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
Loading…
Reference in New Issue