From 8bcefe6cfa24ef6454f0fadd5f200914d3dc4cf6 Mon Sep 17 00:00:00 2001 From: pooler Date: Mon, 8 Jan 2018 21:48:09 +0100 Subject: [PATCH] Fix Blockchain.get_target() --- lib/blockchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blockchain.py b/lib/blockchain.py index e454e079a..391d4123a 100644 --- a/lib/blockchain.py +++ b/lib/blockchain.py @@ -273,9 +273,9 @@ class Blockchain(util.PrintError): def get_target(self, index): # compute target from chunk x, used in chunk x+1 if bitcoin.NetworkConstants.TESTNET: - return 0, 0 + return 0 if index == -1: - return 0x1d00ffff, MAX_TARGET + return MAX_TARGET if index < len(self.checkpoints): h, t = self.checkpoints[index] return t