From 6f15a0c8d398ecbad35de2c3e0f970bf322ac305 Mon Sep 17 00:00:00 2001 From: j-berman Date: Wed, 11 Aug 2021 07:28:10 -0700 Subject: Make sure node returns to wallet that real output is unlocked --- src/wallet/wallet2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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> if (req.outputs[i].index == td.m_global_output_index) if (daemon_resp.outs[i].key == boost::get(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"); -- cgit v1.2.3