From f36af5648bb0973eedb9059f20dc1039fbf3efc6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 19 Nov 2012 21:12:05 +0400 Subject: [PATCH] fix: this wasnt the right place --- backends/bitcoind/util.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backends/bitcoind/util.py b/backends/bitcoind/util.py index ec03b16..f9b9ddc 100644 --- a/backends/bitcoind/util.py +++ b/backends/bitcoind/util.py @@ -83,7 +83,6 @@ 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) @@ -95,6 +94,7 @@ def hash_160_to_bc_address(h160): return b58encode(addr) def bc_address_to_hash_160(addr): + if addr == 'None': return 'None' bytes = b58decode(addr, 25) return bytes[1:21] -- 1.7.1