From c961dd609a785d80e1b50466838bc1e9312b22f9 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 16 Aug 2018 21:46:02 -0400 Subject: [PATCH] pylint fixes --- torba/basedatabase.py | 2 +- torba/baseledger.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: