Skip to content

Commit

Permalink
Minor change in getTransactionProof
Browse files Browse the repository at this point in the history
  • Loading branch information
aivve committed Jun 2, 2020
1 parent 416b663 commit 43718ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CryptoNoteWrapper/WalletGreenWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 43718ea

Please sign in to comment.