URI: 
       tfix blockchain.height() - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8834ed9714f207bec41e4f8fa7ae26ff25a1c1f6
   DIR parent 05a9718b7c27d6c69165935c995e61c265f379de
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat, 15 Jul 2017 11:59:05 +0200
       
       fix blockchain.height()
       
       Diffstat:
         M lib/blockchain.py                   |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/blockchain.py b/lib/blockchain.py
       t@@ -79,7 +79,9 @@ class Blockchain(util.PrintError):
                self.set_local_height()
        
            def height(self):
       -        return self.local_height + len(self.headers)
       +        if self.headers:
       +            return self.checkpoint + len(self.headers) - 1
       +        return self.local_height
        
            def verify_header(self, header, prev_header, bits, target):
                prev_hash = hash_header(prev_header)