pylint fixes

This commit is contained in:
Lex Berezhny 2018-08-16 21:46:02 -04:00
parent dabedc17d0
commit c961dd609a
2 changed files with 3 additions and 3 deletions

View file

@ -241,7 +241,7 @@ class BaseDatabase(SQLiteMixin):
def release_outputs(self, txos):
return self.reserve_outputs(txos, is_reserved=False)
def rewind_blockchain(self, above_height):
def rewind_blockchain(self, above_height): # pylint: disable=no-self-use
# TODO:
# 1. delete transactions above_height
# 2. update address histories removing deleted TXs

View file

@ -281,8 +281,8 @@ class BaseLedger(metaclass=LedgerRegistry):
height -= 1
rewound += 1
log.warning(
"Blockchain Reorganization: attempting rewind to height {} from starting height {}"
.format(height, height+rewound)
"Blockchain Reorganization: attempting rewind to height %s from starting height %s",
height, height+rewound
)
else: