aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/construct_tx.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-09 14:34:38 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-09 14:34:38 +0200
commitfe43461c2bb93c27d267dda0d7511ec601222eca (patch)
tree3284b5cfb361e3cb37abbeb03faf7f6a64e93bb7 /tests/performance_tests/construct_tx.h
parentMerge pull request #1192 (diff)
parentringct: use const refs as parameters where appropriate (diff)
downloadmonero-fe43461c2bb93c27d267dda0d7511ec601222eca.tar.xz
Merge pull request #1194
3126ba7 ringct: use const refs as parameters where appropriate (moneromooo-monero) d8eae67 tests: add performance test for ge_frombytes_vartime (moneromooo-monero) 3cb2436 core: remove some unused code (moneromooo-monero) 1eaa3e8 tests: add performance tests for rct signatures (moneromooo-monero)
Diffstat (limited to 'tests/performance_tests/construct_tx.h')
-rw-r--r--tests/performance_tests/construct_tx.h6
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: