send_tx
This commit is contained in:
@@ -37,7 +37,6 @@ class Interface:
|
||||
#only asynchrnous
|
||||
self.addresses_waiting_for_status = []
|
||||
self.addresses_waiting_for_history = []
|
||||
self.tx_event = threading.Event()
|
||||
|
||||
#json
|
||||
self.message_id = 0
|
||||
@@ -49,13 +48,6 @@ class Interface:
|
||||
return self.responses.empty() and not ( self.addresses_waiting_for_status or self.addresses_waiting_for_history )
|
||||
|
||||
|
||||
def send_tx(self, data):
|
||||
self.tx_event.clear()
|
||||
self.send([('transaction.broadcast', [data])])
|
||||
self.tx_event.wait()
|
||||
return self.tx_result
|
||||
|
||||
|
||||
|
||||
def queue_json_response(self, c):
|
||||
#print repr(c)
|
||||
|
||||
Reference in New Issue
Block a user