Skip to content

Commit

Permalink
Revert "tmp"
Browse files Browse the repository at this point in the history
This reverts commit 9a73260.
  • Loading branch information
forrestv committed Jun 20, 2014
1 parent 17082a6 commit 1a0e04a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions p2pool/bitcoin/data.py
Expand Up @@ -258,12 +258,9 @@ def pubkey_to_address(pubkey, net):

def address_to_pubkey_hash(address, net):
x = human_address_type.unpack(base58_decode(address))
if x['version'] == net.ADDRESS_VERSION:
return x['pubkey_hash']
elif x['version'] == net.ADDRESS_VERSION + 5:
return x['pubkey_hash'] # XXX script hash - handle specially
else:
raise ValueError('address not for this net! %r' % (address,))
if x['version'] != net.ADDRESS_VERSION:
raise ValueError('address not for this net!')
return x['pubkey_hash']

# transactions

Expand Down

0 comments on commit 1a0e04a

Please sign in to comment.