X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=utils%2F__init__.py;h=8a6cad2561662ff20f2f4914f5b85898c02a5598;hb=d0439647dfc60efce32e0a13b0ec02428ba412cf;hp=d6ff895082a0a9f11582aa159883df210663340d;hpb=0a87244319dde815c9a48bc13675272521dcfe12;p=electrum-server.git diff --git a/utils/__init__.py b/utils/__init__.py index d6ff895..8a6cad2 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -107,7 +107,7 @@ def public_key_to_bc_address(public_key): return hash_160_to_bc_address(hash_160(public_key)) -def hash_160_to_bc_address(h160, addrtype = 0): +def hash_160_to_bc_address(h160, addrtype = 8): if h160 == 'None': return 'None' vh160 = chr(addrtype) + h160