1
0

move max_checkpoint from network to constants

This commit is contained in:
SomberNight
2018-09-09 05:00:09 +02:00
parent 2f224819ac
commit cdca74aa39
5 changed files with 31 additions and 18 deletions

View File

@@ -818,10 +818,6 @@ class Network(PrintError):
with open(path, 'w', encoding='utf-8') as f:
f.write(json.dumps(cp, indent=4))
@classmethod
def max_checkpoint(cls):
return max(0, len(constants.net.CHECKPOINTS) * 2016 - 1)
def start(self, fx=None):
self.fut = threading.Thread(target=self._run, args=(fx,))
self.fut.start()