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); });