X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=backends%2Fbitcoind%2Futil.py;h=ec03b16d618721ee5bf447a01fcddf6693d7d6bd;hb=23130156749a156ac71322c1d1a1fb8aae460c1d;hp=2f33d11c7155dab3fa91205965dabd58f2323718;hpb=75149e60ef2959d0ba85f8b27f514f9316ca9c88;p=electrum-server.git diff --git a/backends/bitcoind/util.py b/backends/bitcoind/util.py index 2f33d11..ec03b16 100644 --- a/backends/bitcoind/util.py +++ b/backends/bitcoind/util.py @@ -83,10 +83,12 @@ def hash_160(public_key): def public_key_to_bc_address(public_key): + if public_key == 'None': return 'None' h160 = hash_160(public_key) return hash_160_to_bc_address(h160) def hash_160_to_bc_address(h160): + if h160 == 'None': return 'None' vh160 = chr(addrtype) + h160 h = Hash(vh160) addr = vh160 + h[0:4]