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): def release_outputs(self, txos):
return self.reserve_outputs(txos, is_reserved=False) 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: # TODO:
# 1. delete transactions above_height # 1. delete transactions above_height
# 2. update address histories removing deleted TXs # 2. update address histories removing deleted TXs

View file

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