electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8834ed9714f207bec41e4f8fa7ae26ff25a1c1f6
parent 05a9718b7c27d6c69165935c995e61c265f379de
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 15 Jul 2017 11:59:05 +0200

fix blockchain.height()

Diffstat:
Mlib/blockchain.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/blockchain.py b/lib/blockchain.py @@ -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)