diff options
| author | tobtoht <tob@featherwallet.org> | 2026-04-29 08:07:08 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-04-29 08:07:08 +0000 |
| commit | 77e329bc8fa3a052fb938082b520408196a67d06 (patch) | |
| tree | 114e0829e349850d12181a080113e2c1337995cc /src/wallet | |
| parent | 586e82bcc0f9491a14bb9b824248925d09f68c75 (diff) | |
| parent | 04eeb3ba1fc2ed0239eb10e885136d86b7e98ad0 (diff) | |
| download | monzero-core-77e329bc8fa3a052fb938082b520408196a67d06.tar.gz monzero-core-77e329bc8fa3a052fb938082b520408196a67d06.tar.xz monzero-core-77e329bc8fa3a052fb938082b520408196a67d06.zip | |
Merge pull request #10480
04eeb3b wallet2: ensure daemon returns correct tx for spend proof (selsta)
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index b57ae3b69..179e134ec 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -12604,6 +12604,7 @@ std::string wallet2::get_spend_proof(const crypto::hash &txid, const std::string cryptonote::transaction tx; crypto::hash tx_hash; THROW_WALLET_EXCEPTION_IF(!get_pruned_tx(res.txs[0], tx, tx_hash), error::wallet_internal_error, "Failed to get tx from daemon"); + THROW_WALLET_EXCEPTION_IF(tx_hash != txid, error::wallet_internal_error, "Failed to get the right transaction from daemon"); std::vector<std::vector<crypto::signature>> signatures; @@ -12725,6 +12726,7 @@ bool wallet2::check_spend_proof(const crypto::hash &txid, const std::string &mes cryptonote::transaction tx; crypto::hash tx_hash; THROW_WALLET_EXCEPTION_IF(!get_pruned_tx(res.txs[0], tx, tx_hash), error::wallet_internal_error, "failed to get tx from daemon"); + THROW_WALLET_EXCEPTION_IF(tx_hash != txid, error::wallet_internal_error, "Failed to get the right transaction from daemon"); // check signature size size_t num_sigs = 0; |
