diff options
author | stoffu <stoffu@protonmail.ch> | 2019-04-09 18:38:53 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2019-04-17 10:26:25 +0900 |
commit | 5fafb90e91cf5288505e4b8a669bc8340eb906e7 (patch) | |
tree | 877f30132fc6b781449c8481c36a9aa056bd3aa2 /tests/unit_tests/hardfork.cpp | |
parent | Merge pull request #5430 (diff) | |
download | monero-5fafb90e91cf5288505e4b8a669bc8340eb906e7.tar.xz |
testdb: add override keyword where missing
and delete obsolete BlockchainBDB::get_tx_output_indices along the way
Diffstat (limited to 'tests/unit_tests/hardfork.cpp')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index bb26b5533..1d1e8e9c0 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -46,7 +46,7 @@ namespace class TestDB: public cryptonote::BaseTestDB { public: - virtual uint64_t height() const { return blocks.size(); } + virtual uint64_t height() const override { return blocks.size(); } virtual void add_block( const block& blk , size_t block_weight , uint64_t long_term_block_weight @@ -54,19 +54,19 @@ public: , const uint64_t& coins_generated , uint64_t num_rct_outs , const crypto::hash& blk_hash - ) { + ) override { blocks.push_back(blk); } - virtual void remove_block() { blocks.pop_back(); } - virtual block get_block_from_height(const uint64_t& height) const { + virtual void remove_block() override { blocks.pop_back(); } + virtual block get_block_from_height(const uint64_t& height) const override { return blocks.at(height); } - virtual void set_hard_fork_version(uint64_t height, uint8_t version) { + virtual void set_hard_fork_version(uint64_t height, uint8_t version) override { if (versions.size() <= height) versions.resize(height+1); versions[height] = version; } - virtual uint8_t get_hard_fork_version(uint64_t height) const { + virtual uint8_t get_hard_fork_version(uint64_t height) const override { return versions.at(height); } |