diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-06-04 14:18:37 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:28:11 +0100 |
commit | eb56d0f9941d4aed9d89a20007221cecd1dc6cbc (patch) | |
tree | d64620722d53d8e5aa07d14eb40c7377a5158471 /tests/unit_tests/hardfork.cpp | |
parent | ringct: restore verRange check in debug mode (diff) | |
download | monero-eb56d0f9941d4aed9d89a20007221cecd1dc6cbc.tar.xz |
blockchain_db: add functions for adding/removing/getting rct commitments
Diffstat (limited to 'tests/unit_tests/hardfork.cpp')
-rw-r--r-- | tests/unit_tests/hardfork.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit_tests/hardfork.cpp b/tests/unit_tests/hardfork.cpp index eab6b9cf8..1eb73e156 100644 --- a/tests/unit_tests/hardfork.cpp +++ b/tests/unit_tests/hardfork.cpp @@ -100,6 +100,10 @@ public: virtual void add_tx_amount_output_indices(const uint64_t tx_index, const std::vector<uint64_t>& amount_output_indices) {} virtual void add_spent_key(const crypto::key_image& k_image) {} virtual void remove_spent_key(const crypto::key_image& k_image) {} + virtual uint64_t get_num_rct_outputs() const { return 0; } + virtual rct::key get_rct_commitment(uint64_t idx) const { return rct::key(); } + virtual uint64_t add_rct_commitment(const rct::key &commitment) { return 0; } + virtual void remove_rct_commitment(uint64_t idx) {} virtual bool for_all_key_images(std::function<bool(const crypto::key_image&)>) const { return true; } virtual bool for_all_blocks(std::function<bool(uint64_t, const crypto::hash&, const cryptonote::block&)>) const { return true; } |