mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 10:01:02 +00:00
blockchain: avoid using a reference to a temporary
This commit is contained in:
parent
8f94fcf6a3
commit
3644aa94f3
1 changed files with 1 additions and 1 deletions
|
@ -1764,7 +1764,7 @@ bool Blockchain::get_outs(const COMMAND_RPC_GET_OUTPUTS::request& req, COMMAND_R
|
||||||
for (const auto &i: req.outputs)
|
for (const auto &i: req.outputs)
|
||||||
{
|
{
|
||||||
// get tx_hash, tx_out_index from DB
|
// get tx_hash, tx_out_index from DB
|
||||||
const output_data_t &od = m_db->get_output_key(i.amount, i.index);
|
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);
|
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));
|
bool unlocked = is_tx_spendtime_unlocked(m_db->get_tx_unlock_time(toi.first));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue