diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:17:28 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:17:28 +0200 |
commit | a8e03344e532e6e1f3904fbf3ce60aca6b2e4241 (patch) | |
tree | fb50a8c765ed0cf2ee02f37b7ea5239a20f8b74b /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #1175 (diff) | |
parent | blockchain: avoid using a reference to a temporary (diff) | |
download | monero-a8e03344e532e6e1f3904fbf3ce60aca6b2e4241.tar.xz |
Merge pull request #1177
3644aa9 blockchain: avoid using a reference to a temporary (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 74e1419c8..83290796b 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1766,7 +1766,7 @@ 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 - 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); bool unlocked = is_tx_spendtime_unlocked(m_db->get_tx_unlock_time(toi.first)); |