Skip to content

Commit 2e4bc02

Browse files
committed
Replace unhexlify() calls with unhexlify_str()
Fixes petertodd#274
1 parent 637d2dd commit 2e4bc02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/rpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ def getrawtransaction(self, txid, verbose=False, block_hash=None):
589589
raise IndexError('%s.getrawtransaction(): %s (%d)' %
590590
(self.__class__.__name__, ex.error['message'], ex.error['code']))
591591
if verbose:
592-
r['tx'] = CTransaction.deserialize(unhexlify(r['hex']))
592+
r['tx'] = CTransaction.deserialize(unhexlify_str(r['hex']))
593593
del r['hex']
594594
del r['txid']
595595
del r['version']
@@ -598,7 +598,7 @@ def getrawtransaction(self, txid, verbose=False, block_hash=None):
598598
del r['vout']
599599
r['blockhash'] = lx(r['blockhash']) if 'blockhash' in r else None
600600
else:
601-
r = CTransaction.deserialize(unhexlify(r))
601+
r = CTransaction.deserialize(unhexlify_str(r))
602602
return r
603603

604604
def getreceivedbyaddress(self, addr, minconf=1):

0 commit comments

Comments
 (0)