Browse Source

Cast verbose to int for daemon RPC

Fixes #506
patch-2
Neil Booth 7 years ago
parent
commit
f2f19aeffc
  1. 3
      server/daemon.py

3
server/daemon.py

@ -264,8 +264,9 @@ class Daemon(object):
async def getrawtransaction(self, hex_hash, verbose=False):
'''Return the serialized raw transaction with the given hash.'''
# Cast to int because some coin daemons are old and require it
return await self._send_single('getrawtransaction',
(hex_hash, verbose))
(hex_hash, int(verbose)))
async def getrawtransactions(self, hex_hashes, replace_errs=True):
'''Return the serialized raw transactions with the given hashes.

Loading…
Cancel
Save