fix moe used for truncate

This commit is contained in:
ThomasV 2017-03-27 00:46:44 +02:00
parent 59bc220856
commit e6560b8d7f

View file

@ -191,7 +191,7 @@ class Blockchain(util.PrintError):
return return
self.print_error('Truncating headers file at height %d'%self.checkpoint_height) self.print_error('Truncating headers file at height %d'%self.checkpoint_height)
name = self.path() name = self.path()
f = open(name, 'rwb+') f = open(name, 'rb+')
f.seek(self.checkpoint_height * 80) f.seek(self.checkpoint_height * 80)
f.truncate() f.truncate()
f.close() f.close()