aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-12-05 21:57:56 +0200
committerRiccardo Spagni <ric@spagni.net>2015-12-05 21:58:27 +0200
commit7ee0abe5a65d12a50c5169bf93bef8113469f975 (patch)
tree3e742a2c53b35620d28b9003a6788e80a8651024 /tests
parentMerge pull request #515 (diff)
parentblockchain_db: make the indexing base a BlockchainDB virtual function (diff)
downloadmonero-7ee0abe5a65d12a50c5169bf93bef8113469f975.tar.xz
Merge pull request #517
a3c5ca0 blockchain_db: make the indexing base a BlockchainDB virtual function (moneromooo-monero) a702118 blockchain_dump: fix output key dump for BDB 1-based indices (moneromooo-monero) 3bf35e1 db_bdb: read 32 bit heights from keys (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/hardfork.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp
index 254dece54..e59d4c590 100644
--- a/tests/unit_tests/hardfork.cpp
+++ b/tests/unit_tests/hardfork.cpp
@@ -79,6 +79,7 @@ public:
virtual std::vector<transaction> get_tx_list(const std::vector<crypto::hash>& hlist) const { return std::vector<transaction>(); }
virtual uint64_t get_tx_block_height(const crypto::hash& h) const { return 0; }
virtual uint64_t get_num_outputs(const uint64_t& amount) const { return 1; }
+ virtual uint64_t get_indexing_base() const { return 0; }
virtual output_data_t get_output_key(const uint64_t& amount, const uint64_t& index) { return output_data_t(); }
virtual output_data_t get_output_key(const uint64_t& global_index) const { return output_data_t(); }
virtual tx_out_index get_output_tx_and_index_from_global(const uint64_t& index) const { return tx_out_index(); }