1
0

create a class for transaction dialog

This commit is contained in:
ThomasV
2013-09-14 21:07:54 +02:00
parent 27977e6eb0
commit d51a8d0f25
9 changed files with 257 additions and 149 deletions

View File

@@ -174,6 +174,12 @@ class Network(threading.Thread):
def is_running(self):
with self.lock: return self.running
def retrieve_transaction(self, tx_hash, tx_height=0):
import transaction
r = self.interface.synchronous_get([ ('blockchain.transaction.get',[tx_hash, tx_height]) ])[0]
return transaction.Transaction(r)
def parse_servers(self, result):
""" parse servers list into dict format"""