mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 09:30:40 -04:00
wallet: transfer_selected_rct now also selects fake outs
This commit is contained in:
parent
4f887dea6e
commit
b951bc8780
4 changed files with 213 additions and 292 deletions
|
@ -1753,11 +1753,11 @@ bool Blockchain::get_outs(const COMMAND_RPC_GET_OUTPUTS::request& req, COMMAND_R
|
|||
for (const auto &i: req.outputs)
|
||||
{
|
||||
// get tx_hash, tx_out_index from DB
|
||||
crypto::public_key key = m_db->get_output_key(i.amount, i.index).pubkey;
|
||||
const output_data_t &od = m_db->get_output_key(i.amount, i.index);
|
||||
tx_out_index toi = m_db->get_output_tx_and_index(i.amount, i.index);
|
||||
bool unlocked = is_tx_spendtime_unlocked(m_db->get_tx_unlock_time(toi.first));
|
||||
|
||||
res.outs.push_back({key, unlocked});
|
||||
res.outs.push_back({od.pubkey, od.commitment, unlocked});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue