URI: 
       tfix bug in get_target - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 81f070c83b1f4acbd4194505abce3265b60357ae
   DIR parent 4112e2c3fac36d5384e5a9734d8f808acb0acb78
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Fri, 11 Dec 2015 10:14:01 +0100
       
       fix bug in get_target
       
       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@@ -199,7 +199,7 @@ class Blockchain(util.PrintError):
                bitsN = (bits >> 24) & 0xff
                assert bitsN >= 0x03 and bitsN <= 0x1d, "First part of bits should be in [0x03, 0x1d]"
                bitsBase = bits & 0xffffff
       -        assert bitsN >= 0x8000 and bitsN <= 0x7fffff, "Second part of bits should be in [0x8000, 0x7fffff]"
       +        assert bitsBase >= 0x8000 and bitsBase <= 0x7fffff, "Second part of bits should be in [0x8000, 0x7fffff]"
                target = bitsBase << (8*(bitsN-3))
        
                # new target