mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Fix encoding errors on send_transaction()
This commit is contained in:
parent
261cd342dd
commit
3ad3a6082b
6 changed files with 42 additions and 4 deletions
|
@ -5,6 +5,7 @@ import operator
|
|||
import json
|
||||
import logging
|
||||
import requests
|
||||
import six
|
||||
|
||||
from .. import exceptions
|
||||
from ..account import Account
|
||||
|
@ -67,7 +68,7 @@ class JSONRPCDaemon(object):
|
|||
|
||||
def send_transaction(self, blob, relay=True):
|
||||
res = self.raw_request('/sendrawtransaction', {
|
||||
'tx_as_hex': binascii.hexlify(blob),
|
||||
'tx_as_hex': six.ensure_text(binascii.hexlify(blob)),
|
||||
'do_not_relay': not relay})
|
||||
if res['status'] == 'OK':
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue