Browse Source

fix moe used for truncate

2.9.x
ThomasV 8 years ago
parent
commit
e6560b8d7f
  1. 2
      lib/blockchain.py

2
lib/blockchain.py

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

Loading…
Cancel
Save