aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/testdb.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-12 18:40:37 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-11-15 13:23:30 +0000
commit08635a08755956be12c68ba40bcc96b8828ff2a9 (patch)
tree2133b2139a27b6959de7494e7bd0c712997d2276 /src/blockchain_db/testdb.h
parentMerge pull request #6097 (diff)
downloadmonero-08635a08755956be12c68ba40bcc96b8828ff2a9.tar.xz
blockchain: speedup fetching pruned contiguous tx blobs
About twice as fast, very roughly
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/testdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_db/testdb.h b/src/blockchain_db/testdb.h
index ac19fae25..4176e087c 100644
--- a/src/blockchain_db/testdb.h
+++ b/src/blockchain_db/testdb.h
@@ -69,6 +69,7 @@ public:
virtual cryptonote::blobdata get_block_blob(const crypto::hash& h) const override { return cryptonote::blobdata(); }
virtual bool get_tx_blob(const crypto::hash& h, cryptonote::blobdata &tx) const override { return false; }
virtual bool get_pruned_tx_blob(const crypto::hash& h, cryptonote::blobdata &tx) const override { return false; }
+ virtual bool get_pruned_tx_blobs_from(const crypto::hash& h, size_t count, std::vector<cryptonote::blobdata> &bd) const { return false; }
virtual bool get_prunable_tx_blob(const crypto::hash& h, cryptonote::blobdata &tx) const override { return false; }
virtual bool get_prunable_tx_hash(const crypto::hash& tx_hash, crypto::hash &prunable_hash) const override { return false; }
virtual uint64_t get_block_height(const crypto::hash& h) const override { return 0; }