wallet: transfer_selected_rct now also selects fake outs

This commit is contained in:
moneromooo-monero 2016-08-21 09:56:32 +01:00
parent 4f887dea6e
commit b951bc8780
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 213 additions and 292 deletions

View file

@ -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;
}