commit e6560b8d7f9977bd1b97fdfbd505890faaa20932
parent 59bc22085627c2ffe21cfb021f59064a8fad814e
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 27 Mar 2017 00:46:44 +0200
fix moe used for truncate
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/blockchain.py b/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()