diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-08-20 16:49:19 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-08-20 16:49:19 -0400 |
commit | a520234c51cb26b65858d7c3e6e9caa8cad5afc3 (patch) | |
tree | eab0dea12d8f422284c7f0aa09926e0fab3599e2 /src | |
parent | Merge pull request #7846 (diff) | |
parent | Make sure node returns to wallet that real output is unlocked (diff) | |
download | monero-a520234c51cb26b65858d7c3e6e9caa8cad5afc3.tar.xz |
Merge pull request #7848
adcf440 Make sure node returns to wallet that real output is unlocked (j-berman)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index e25572f10..116bb5b3f 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8592,7 +8592,8 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>> if (req.outputs[i].index == td.m_global_output_index) if (daemon_resp.outs[i].key == boost::get<txout_to_key>(td.m_tx.vout[td.m_internal_output_index].target).key) if (daemon_resp.outs[i].mask == mask) - real_out_found = true; + if (daemon_resp.outs[i].unlocked) + real_out_found = true; } THROW_WALLET_EXCEPTION_IF(!real_out_found, error::wallet_internal_error, "Daemon response did not include the requested real output"); |