|
|
|
@ -253,6 +253,7 @@ class Interface: |
|
|
|
def send_tx(self, data): |
|
|
|
def send_tx(self, data): |
|
|
|
if self.use_http(): |
|
|
|
if self.use_http(): |
|
|
|
out = self.http_json_server.blockchain.transaction.broadcast(data) |
|
|
|
out = self.http_json_server.blockchain.transaction.broadcast(data) |
|
|
|
|
|
|
|
out = out.get("result") |
|
|
|
else: |
|
|
|
else: |
|
|
|
out = self.request( repr ( ('tx', data ))) |
|
|
|
out = self.request( repr ( ('tx', data ))) |
|
|
|
return out |
|
|
|
return out |
|
|
|
|