From 28764936c4d3e0d540dd9fbae888a8c212641e41 Mon Sep 17 00:00:00 2001 From: Justin Turner Arthur Date: Wed, 2 Aug 2017 01:55:44 -0500 Subject: [PATCH] Remove semicolons and a couple unused variables. (#212) --- lib/coins.py | 2 +- query.py | 1 - server/db.py | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/coins.py b/lib/coins.py index 7d410ad..ff17550 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -815,7 +815,7 @@ class Blackcoin(Coin): if version > 6: return super().header_hash(header) else: - return cls.HEADER_HASH(header); + return cls.HEADER_HASH(header) class Peercoin(Coin): diff --git a/query.py b/query.py index 995ce7b..2e9668d 100755 --- a/query.py +++ b/query.py @@ -56,7 +56,6 @@ def main(): print('Address: ', addr) hashX = coin.address_to_hashX(addr) - n = None for n, (tx_hash, height) in enumerate(bp.get_history(hashX, limit)): print('History #{:d}: hash: {} height: {:d}' .format(n + 1, hash_to_str(tx_hash), height)) diff --git a/server/db.py b/server/db.py index ef6963f..1ba4e01 100644 --- a/server/db.py +++ b/server/db.py @@ -571,7 +571,7 @@ class DB(util.LoggedClass): if nrows > 4: self.log_info('hashX {} is large: {:,d} entries across {:,d} rows' .format(hash_to_str(hashX), len(full_hist) // 4, - nrows)); + nrows)) # Find what history needs to be written, and what keys need to # be deleted. Start by assuming all keys are to be deleted, @@ -660,7 +660,6 @@ class DB(util.LoggedClass): limit = 50 * 1000 * 1000 while self.comp_cursor != -1: - locked = self.semaphore.locked if self.semaphore.locked: self.log_info('compact_history: waiting on semaphore...') with await self.semaphore: