fix flags

This commit is contained in:
ThomasV 2012-10-27 20:04:08 +02:00
parent 69c56c5b8d
commit 1a7f1daebd
1 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ class WalletVerifier(threading.Thread):
def save_chunk(self, index, chunk):
filename = self.path()
if os.path.exists(filename):
f = open(filename,'rwb+')
f = open(filename,'rb+')
else:
print "creating file", filename
f = open(filename,'wb+')
@ -278,7 +278,7 @@ class WalletVerifier(threading.Thread):
assert len(data) == 80
height = header.get('block_height')
filename = self.path()
f = open(filename,'rwb+')
f = open(filename,'rb+')
f.seek(height*80)
h = f.write(data)
f.close()