Remove semicolons and a couple unused variables. (#212)
This commit is contained in:
parent
ecad494f28
commit
28764936c4
@ -815,7 +815,7 @@ class Blackcoin(Coin):
|
|||||||
if version > 6:
|
if version > 6:
|
||||||
return super().header_hash(header)
|
return super().header_hash(header)
|
||||||
else:
|
else:
|
||||||
return cls.HEADER_HASH(header);
|
return cls.HEADER_HASH(header)
|
||||||
|
|
||||||
|
|
||||||
class Peercoin(Coin):
|
class Peercoin(Coin):
|
||||||
|
|||||||
1
query.py
1
query.py
@ -56,7 +56,6 @@ def main():
|
|||||||
print('Address: ', addr)
|
print('Address: ', addr)
|
||||||
hashX = coin.address_to_hashX(addr)
|
hashX = coin.address_to_hashX(addr)
|
||||||
|
|
||||||
n = None
|
|
||||||
for n, (tx_hash, height) in enumerate(bp.get_history(hashX, limit)):
|
for n, (tx_hash, height) in enumerate(bp.get_history(hashX, limit)):
|
||||||
print('History #{:d}: hash: {} height: {:d}'
|
print('History #{:d}: hash: {} height: {:d}'
|
||||||
.format(n + 1, hash_to_str(tx_hash), height))
|
.format(n + 1, hash_to_str(tx_hash), height))
|
||||||
|
|||||||
@ -571,7 +571,7 @@ class DB(util.LoggedClass):
|
|||||||
if nrows > 4:
|
if nrows > 4:
|
||||||
self.log_info('hashX {} is large: {:,d} entries across {:,d} rows'
|
self.log_info('hashX {} is large: {:,d} entries across {:,d} rows'
|
||||||
.format(hash_to_str(hashX), len(full_hist) // 4,
|
.format(hash_to_str(hashX), len(full_hist) // 4,
|
||||||
nrows));
|
nrows))
|
||||||
|
|
||||||
# Find what history needs to be written, and what keys need to
|
# Find what history needs to be written, and what keys need to
|
||||||
# be deleted. Start by assuming all keys are to be deleted,
|
# be deleted. Start by assuming all keys are to be deleted,
|
||||||
@ -660,7 +660,6 @@ class DB(util.LoggedClass):
|
|||||||
limit = 50 * 1000 * 1000
|
limit = 50 * 1000 * 1000
|
||||||
|
|
||||||
while self.comp_cursor != -1:
|
while self.comp_cursor != -1:
|
||||||
locked = self.semaphore.locked
|
|
||||||
if self.semaphore.locked:
|
if self.semaphore.locked:
|
||||||
self.log_info('compact_history: waiting on semaphore...')
|
self.log_info('compact_history: waiting on semaphore...')
|
||||||
with await self.semaphore:
|
with await self.semaphore:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user