Add missing self; use max_secs where intended.
This commit is contained in:
parent
83dfbea506
commit
aa9f106865
@ -99,7 +99,7 @@ class Daemon(util.LoggedClass):
|
||||
secs = 1
|
||||
else:
|
||||
await asyncio.sleep(secs)
|
||||
secs = min(16, secs * 2)
|
||||
secs = min(max_secs, secs * 2)
|
||||
|
||||
def logged_url(self, url):
|
||||
'''The host and port part, for logging.'''
|
||||
|
||||
@ -93,7 +93,7 @@ class DB(LoggedClass):
|
||||
if self.db_version not in self.DB_VERSIONS:
|
||||
raise self.DBError('your DB version is {} but this software '
|
||||
'only handles versions {}'
|
||||
.format(db_version, self.DB_VERSIONS))
|
||||
.format(self.db_version, self.DB_VERSIONS))
|
||||
if state['genesis'] != self.coin.GENESIS_HASH:
|
||||
raise self.DBError('DB genesis hash {} does not match coin {}'
|
||||
.format(state['genesis_hash'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user