aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj-berman <justinberman95@gmail.com>2021-08-11 07:26:56 -0700
committerj-berman <justinberman95@gmail.com>2021-08-11 07:26:56 -0700
commitadcf440dcdd46972696c75e111a0cb04011b1bb2 (patch)
treeb9d5b1b3cb09c280dfbddaebca5c64ad18e71269
parentMerge pull request #7734 (diff)
downloadmonero-adcf440dcdd46972696c75e111a0cb04011b1bb2.tar.xz
Make sure node returns to wallet that real output is unlocked
-rw-r--r--src/wallet/wallet2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 642777797..32e52843a 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -8583,7 +8583,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");