mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
Blockchain: reflect assert behavior of blockchain_storage for get_tx_outputs_gindexs()
This commit is contained in:
parent
d00ee784db
commit
c8d27fb38d
1 changed files with 2 additions and 0 deletions
|
@ -1808,6 +1808,8 @@ bool Blockchain::get_tx_outputs_gindexs(const crypto::hash& tx_id, std::vector<u
|
||||||
|
|
||||||
// get amount output indexes, currently referred to in parts as "output global indices", but they are actually specific to amounts
|
// get amount output indexes, currently referred to in parts as "output global indices", but they are actually specific to amounts
|
||||||
indexs = m_db->get_tx_amount_output_indices(tx_id);
|
indexs = m_db->get_tx_amount_output_indices(tx_id);
|
||||||
|
CHECK_AND_ASSERT_MES(indexs.size(), false, "internal error: global indexes for transaction " << tx_id << " is empty");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue