Add missing self; use max_secs where intended.

This commit is contained in:
Neil Booth 2016-11-20 22:13:21 +09:00
parent 83dfbea506
commit aa9f106865
2 changed files with 2 additions and 2 deletions

View File

@ -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.'''

View File

@ -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'],