tfix moe used for truncate - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e6560b8d7f9977bd1b97fdfbd505890faaa20932
DIR parent 59bc22085627c2ffe21cfb021f59064a8fad814e
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 27 Mar 2017 00:46:44 +0200
fix moe used for truncate
Diffstat:
M lib/blockchain.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/lib/blockchain.py b/lib/blockchain.py
t@@ -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()