From 499218d75d3438a243080545efc59d033c0dfd05 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 28 Nov 2019 08:14:29 -0500 Subject: [PATCH] sweep_account() and get_outputs() set tx->m_is_unlocked --- src/wallet/monero_wallet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/monero_wallet.cpp b/src/wallet/monero_wallet.cpp index 0aaea16..9d105f3 100644 --- a/src/wallet/monero_wallet.cpp +++ b/src/wallet/monero_wallet.cpp @@ -335,6 +335,7 @@ namespace monero { tx->m_in_tx_pool = false; tx->m_do_not_relay = false; tx->m_is_double_spend_seen = false; + tx->m_is_unlocked = m_w2.is_transfer_unlocked(td); // construct vout shared_ptr vout = make_shared(); @@ -345,7 +346,7 @@ namespace monero { vout->m_account_index = td.m_subaddr_index.major; vout->m_subaddress_index = td.m_subaddr_index.minor; vout->m_is_spent = td.m_spent; - vout->m_is_unlocked = m_w2.is_transfer_unlocked(td); + vout->m_is_unlocked = m_w2.is_transfer_unlocked(td); // TODO: this is redundant with tx vout->m_is_frozen = td.m_frozen; if (td.m_key_image_known) { vout->m_key_image = make_shared(); @@ -2133,6 +2134,7 @@ namespace monero { shared_ptr tx = make_shared(); txs.push_back(tx); tx->m_id = *tx_ids_iter; + tx->m_is_unlocked = false; tx->m_is_outgoing = true; tx->m_key = *tx_keys_iter; tx->m_fee = *tx_fees_iter;