From e18892997290b81337f79ee8dfc1457d2ff000e6 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Thu, 19 Nov 2015 18:40:54 +0300 Subject: [PATCH] Fix proof of work assert in verify_chunk --- lib/blockchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockchain.py b/lib/blockchain.py index 89fda7ed..a264543c 100644 --- a/lib/blockchain.py +++ b/lib/blockchain.py @@ -88,7 +88,7 @@ class Blockchain(util.PrintError): _hash = self.hash_header(header) assert previous_hash == header.get('prev_block_hash') assert bits == header.get('bits') - assert int('0x'+_hash,16) < target + assert int('0x'+_hash,16) <= target previous_header = header previous_hash = _hash