URI: 
       tMerge pull request #3677 from pooler/gettarget-fix - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit ffcb926a1594afd871901efbbaf31e4b7ca309d0
   DIR parent 41660d26e922876dc653096a973b2ee17ac9996b
  HTML Author: ghost43 <somber.night@protonmail.com>
       Date:   Mon,  8 Jan 2018 22:56:07 +0100
       
       Merge pull request #3677 from pooler/gettarget-fix
       
       Fix Blockchain.get_target()
       Diffstat:
         M lib/blockchain.py                   |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/blockchain.py b/lib/blockchain.py
       t@@ -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