diff --git a/torba/basedatabase.py b/torba/basedatabase.py index 7af731f12..92c90fb9d 100644 --- a/torba/basedatabase.py +++ b/torba/basedatabase.py @@ -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 diff --git a/torba/baseledger.py b/torba/baseledger.py index 560c9842d..dd6bad5ec 100644 --- a/torba/baseledger.py +++ b/torba/baseledger.py @@ -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: