aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-16 13:28:49 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-18 11:55:21 +0000
commit008647d7eb8f0bd72f7a9f8a49fe611fc4d5e0fe (patch)
treef8e058256c82ff9606e8eddbf71a9ae41cb1139f /src/cryptonote_core/cryptonote_core.cpp
parent6bc0c7e6850d9b35ce48e3a7f494be95f5247604 (diff)
downloadmonzero-core-008647d7eb8f0bd72f7a9f8a49fe611fc4d5e0fe.tar.gz
monzero-core-008647d7eb8f0bd72f7a9f8a49fe611fc4d5e0fe.tar.xz
monzero-core-008647d7eb8f0bd72f7a9f8a49fe611fc4d5e0fe.zip
blockchain_db: speedup tx output gathering
We know all the data we'll want for getblocks.bin is contiguous
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index f3249ea92..1fa6969a6 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -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();