aboutsummaryrefslogtreecommitdiff
path: root/tests/performance_tests/multi_tx_test_base.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-08 18:53:31 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-10-08 19:35:34 +0100
commit1eaa3e8040ec02a5eb4b3832f8aac56325b88d28 (patch)
treeba3c11161f1e88cee55da24264ecb804553d3f7f /tests/performance_tests/multi_tx_test_base.h
parentMerge pull request #1180 (diff)
downloadmonero-1eaa3e8040ec02a5eb4b3832f8aac56325b88d28.tar.xz
tests: add performance tests for rct signatures
Diffstat (limited to 'tests/performance_tests/multi_tx_test_base.h')
-rw-r--r--tests/performance_tests/multi_tx_test_base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/performance_tests/multi_tx_test_base.h b/tests/performance_tests/multi_tx_test_base.h
index d8898b60d..feabab022 100644
--- a/tests/performance_tests/multi_tx_test_base.h
+++ b/tests/performance_tests/multi_tx_test_base.h
@@ -59,7 +59,7 @@ public:
return false;
txout_to_key tx_out = boost::get<txout_to_key>(m_miner_txs[i].vout[0].target);
- output_entries.push_back(std::make_pair(i, rct::ctkey({rct::pk2rct(tx_out.key), rct::identity()})));
+ output_entries.push_back(std::make_pair(i, rct::ctkey({rct::pk2rct(tx_out.key), rct::zeroCommit(m_miner_txs[i].vout[0].amount)})));
m_public_keys[i] = tx_out.key;
m_public_key_ptrs[i] = &m_public_keys[i];
}
@@ -72,6 +72,7 @@ public:
source_entry.real_output_in_tx_index = 0;
source_entry.outputs.swap(output_entries);
source_entry.real_output = real_source_idx;
+ source_entry.mask = rct::identity();
source_entry.rct = false;
m_sources.push_back(source_entry);