From 5395453bcdc219ee6fbd31016b5cfbce80de86c1 Mon Sep 17 00:00:00 2001 From: successor1 Date: Mon, 29 Nov 2021 15:13:14 +0100 Subject: [PATCH] minor error fix --- main.py | 3 ++- models/TransferTransaction.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 98704eb..42fd02f 100644 --- a/main.py +++ b/main.py @@ -879,7 +879,8 @@ def button_clicked(self): fee, xmss_pk, src_xmss, - ots_key) + ots_key, + qrl_network[0]) QMessageBox.about(self, "Succesful transaction", "Sent!") def update(self): diff --git a/models/TransferTransaction.py b/models/TransferTransaction.py index aa9cebf..dd91e2d 100644 --- a/models/TransferTransaction.py +++ b/models/TransferTransaction.py @@ -37,7 +37,7 @@ def base64tohex(data): return hexlify(a2b_base64(data)) CONNECTION_TIMEOUT = 5 -def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key): +def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key, network): # Create transaction master_addr = None bytes_addrs_to = [] @@ -81,7 +81,7 @@ def tx_transfer(addrs_to, amounts, message_data, fee, xmss_pk, src_xmss, ots_key # Push transaction print("Sending to a QRL Node...") - node_public_address = main.qrl_network[0] + '-1.automated.theqrl.org:19009' + node_public_address = network + '-1.automated.theqrl.org:19009' channel = grpc.insecure_channel(node_public_address) stub = qrl_pb2_grpc.PublicAPIStub(channel) push_transaction_req = qrl_pb2.PushTransactionReq(transaction_signed=tx.pbdata)