Browse Source

block_number should return -1 if we know the DB is not up to date

283
ThomasV 13 years ago
parent
commit
252bb945a9
  1. 4
      server/server.py

4
server/server.py

@ -749,8 +749,12 @@ if __name__ == '__main__':
store.catch_up()
memorypool_update(store)
block_number = store.get_block_number(1)
except IOError:
print "IOError: cannot reach bitcoind"
block_number = -1
except:
traceback.print_exc(file=sys.stdout)
block_number = -1
finally:
dblock.release()
time.sleep(10)

Loading…
Cancel
Save