From 43718ea5087e0e2c4544a4a45eaf30d432ec5f91 Mon Sep 17 00:00:00 2001 From: Aiwe Date: Tue, 2 Jun 2020 18:07:10 +0300 Subject: [PATCH] Minor change in getTransactionProof --- src/CryptoNoteWrapper/WalletGreenWorker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CryptoNoteWrapper/WalletGreenWorker.cpp b/src/CryptoNoteWrapper/WalletGreenWorker.cpp index 2ad9847..d861bc7 100644 --- a/src/CryptoNoteWrapper/WalletGreenWorker.cpp +++ b/src/CryptoNoteWrapper/WalletGreenWorker.cpp @@ -615,9 +615,10 @@ QString WalletGreenWorker::getTransactionProof(Crypto::Hash& _txid, CryptoNote:: SemaphoreLocker locker(m_walletSemaphore); std::string tx_proof; bool r; - Crypto::SecretKey txKey = m_wallet->getTransactionSecretKey(_txid); - m_dispatcher->remoteSpawn([this, _txid, _address, txKey, &tx_proof, &r]() { + + m_dispatcher->remoteSpawn([this, &_txid, _address, &tx_proof, &r]() { SemaphoreUnlocker unlocker(m_walletSemaphore); + Crypto::SecretKey txKey = m_wallet->getTransactionSecretKey(_txid); r = m_wallet->getTransactionProof(_txid, _address, txKey, tx_proof); });