Browse Source

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

master
Justin Turner Arthur 7 years ago
committed by Neil
parent
commit
28764936c4
  1. 2
      lib/coins.py
  2. 1
      query.py
  3. 3
      server/db.py

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

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

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

Loading…
Cancel
Save