X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=lib%2Fnetwork.py;h=fba293712c70f1e86d8d33eb4cc22eeb1ce7de91;hb=d51a8d0f252b3a57d0b2ab1e2149890d97322824;hp=9663da4950a8b8fd8e510ff3a74d410fb726b035;hpb=27977e6eb0624075d74c773310edad2138db2ef4;p=electrum-nvc.git diff --git a/lib/network.py b/lib/network.py index 9663da4..fba2937 100644 --- a/lib/network.py +++ b/lib/network.py @@ -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"""