1
0

Make the verifier a thread job instead of a thread

The verifier, like the synchronizer, now runs as part of the
network proxy thread.
This commit is contained in:
Neil Booth
2015-08-26 17:07:36 +09:00
parent 01491dd1d0
commit b64c42b1eb
3 changed files with 37 additions and 52 deletions

View File

@@ -66,7 +66,7 @@ class NetworkProxy(util.DaemonThread):
def run(self):
while self.is_running():
self.run_jobs() # Synchronizer, for now
self.run_jobs() # Synchronizer and Verifier
try:
response = self.pipe.get()
except util.timeout:
@@ -185,9 +185,6 @@ class NetworkProxy(util.DaemonThread):
def get_interfaces(self):
return self.interfaces
def get_header(self, height):
return self.synchronous_get([('network.get_header', [height])])[0]
def get_local_height(self):
return self.blockchain_height