aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-05 18:41:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-05 18:41:29 +0000
commita3c5ca077c27b7a8fe5ee0a7afdc1d30b6f8ffe8 (patch)
tree3e742a2c53b35620d28b9003a6788e80a8651024 /src/blockchain_db/blockchain_db.h
parentblockchain_dump: fix output key dump for BDB 1-based indices (diff)
downloadmonero-a3c5ca077c27b7a8fe5ee0a7afdc1d30b6f8ffe8.tar.xz
blockchain_db: make the indexing base a BlockchainDB virtual function
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/blockchain_db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h
index 85144f04c..152f29b38 100644
--- a/src/blockchain_db/blockchain_db.h
+++ b/src/blockchain_db/blockchain_db.h
@@ -464,6 +464,9 @@ public:
// returns the total number of outputs of amount <amount>
virtual uint64_t get_num_outputs(const uint64_t& amount) const = 0;
+ // return index of the first element (should be hidden, but isn't)
+ virtual uint64_t get_indexing_base() const { return 0; }
+
// return public key for output with global output amount <amount> and index <index>
virtual output_data_t get_output_key(const uint64_t& amount, const uint64_t& index) = 0;
virtual output_data_t get_output_key(const uint64_t& global_index) const = 0;