diff options
author | j-berman <justinberman95@gmail.com> | 2021-08-11 07:28:10 -0700 |
---|---|---|
committer | j-berman <justinberman95@gmail.com> | 2021-08-11 07:28:10 -0700 |
commit | 6f15a0c8d398ecbad35de2c3e0f970bf322ac305 (patch) | |
tree | 544d0a5990eddf65d77dd571096bbd1dde6dca20 /src | |
parent | Merge pull request #7814 (diff) | |
download | monero-6f15a0c8d398ecbad35de2c3e0f970bf322ac305.tar.xz |
Make sure node returns to wallet that real output is unlocked
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 133db6c2a..9ca93ebc0 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -8644,7 +8644,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"); |