1
0

Improve text gui. Disable print_error when text gui is used.

This commit is contained in:
thomasv
2012-10-29 16:22:53 +01:00
parent cdb52c30d2
commit 5e28ccd09d
5 changed files with 68 additions and 54 deletions

View File

@@ -215,7 +215,7 @@ class WalletVerifier(threading.Thread):
# undo verifications
for tx_hash, tx_height in self.verified_tx.items():
if tx_height >= height:
print "redoing", tx_hash
print_error("redoing", tx_hash)
self.verified_tx.pop(tx_hash)
if tx_hash in self.merkle_roots: self.merkle_roots.pop(tx_hash)
# return False to request previous header.
@@ -269,7 +269,7 @@ class WalletVerifier(threading.Thread):
if os.path.exists(filename):
f = open(filename,'rb+')
else:
print "creating file", filename
print_error( "creating file", filename )
f = open(filename,'wb+')
f.seek(index*2016*80)
h = f.write(chunk)