Remove semicolons and a couple unused variables. (#212)

This commit is contained in:
Justin Turner Arthur 2017-08-02 01:55:44 -05:00 committed by Neil
parent ecad494f28
commit 28764936c4
3 changed files with 2 additions and 4 deletions

View File

@ -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):

View File

@ -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))

View File

@ -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: