diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-08 18:53:31 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-08 19:35:34 +0100 |
commit | 1eaa3e8040ec02a5eb4b3832f8aac56325b88d28 (patch) | |
tree | ba3c11161f1e88cee55da24264ecb804553d3f7f /tests/performance_tests/construct_tx.h | |
parent | Merge pull request #1180 (diff) | |
download | monero-1eaa3e8040ec02a5eb4b3832f8aac56325b88d28.tar.xz |
tests: add performance tests for rct signatures
Diffstat (limited to 'tests/performance_tests/construct_tx.h')
-rw-r--r-- | tests/performance_tests/construct_tx.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/performance_tests/construct_tx.h b/tests/performance_tests/construct_tx.h index d3409c0f3..aef455eaa 100644 --- a/tests/performance_tests/construct_tx.h +++ b/tests/performance_tests/construct_tx.h @@ -36,7 +36,7 @@ #include "multi_tx_test_base.h" -template<size_t a_in_count, size_t a_out_count> +template<size_t a_in_count, size_t a_out_count, bool a_rct> class test_construct_tx : private multi_tx_test_base<a_in_count> { static_assert(0 < a_in_count, "in_count must be greater than 0"); @@ -46,6 +46,7 @@ public: static const size_t loop_count = (a_in_count + a_out_count < 100) ? 100 : 10; static const size_t in_count = a_in_count; static const size_t out_count = a_out_count; + static const bool rct = a_rct; typedef multi_tx_test_base<a_in_count> base_class; @@ -68,7 +69,8 @@ public: bool test() { - return cryptonote::construct_tx(this->m_miners[this->real_source_idx].get_keys(), this->m_sources, m_destinations, std::vector<uint8_t>(), m_tx, 0); + crypto::secret_key tx_key; + return cryptonote::construct_tx_and_get_tx_key(this->m_miners[this->real_source_idx].get_keys(), this->m_sources, m_destinations, std::vector<uint8_t>(), m_tx, 0, tx_key, rct); } private: |