blockchain_db: speedup tx output gathering

We know all the data we'll want for getblocks.bin is contiguous
This commit is contained in:
moneromooo-monero
2018-12-16 13:28:49 +00:00
parent 6bc0c7e685
commit 008647d7eb
9 changed files with 75 additions and 48 deletions
+5
View File
@@ -1220,6 +1220,11 @@ namespace cryptonote
return m_blockchain_storage.get_tx_outputs_gindexs(tx_id, indexs);
}
//-----------------------------------------------------------------------------------------------
bool core::get_tx_outputs_gindexs(const crypto::hash& tx_id, size_t n_txes, std::vector<std::vector<uint64_t>>& indexs) const
{
return m_blockchain_storage.get_tx_outputs_gindexs(tx_id, n_txes, indexs);
}
//-----------------------------------------------------------------------------------------------
void core::pause_mine()
{
m_miner.pause();