1
0

blockchain: restore call to set_local_height, forgotten in previous commit

This commit is contained in:
ThomasV
2015-06-13 16:45:42 +02:00
parent d09a10e0f7
commit ec9cdfaf48

View File

@@ -40,6 +40,7 @@ class Blockchain(util.DaemonThread):
def run(self): def run(self):
self.init_headers_file() self.init_headers_file()
self.set_local_height()
self.print_error("%d blocks" % self.local_height) self.print_error("%d blocks" % self.local_height)
while self.is_running(): while self.is_running():
@@ -166,7 +167,6 @@ class Blockchain(util.DaemonThread):
filename = self.path() filename = self.path()
if os.path.exists(filename): if os.path.exists(filename):
return return
try: try:
import urllib, socket import urllib, socket
socket.setdefaulttimeout(30) socket.setdefaulttimeout(30)