From e6560b8d7f9977bd1b97fdfbd505890faaa20932 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 27 Mar 2017 00:46:44 +0200 Subject: [PATCH] fix moe used for truncate --- lib/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockchain.py b/lib/blockchain.py index 0e03430da..81941bf2e 100644 --- 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()