aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/rct.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-07-28 19:04:51 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:29:58 +0100
commite5a9a4755b458bce66f6658a1051aff3b91c94b5 (patch)
tree4817a734080365ba09d2defcffcf13a82c1b39b7 /tests/core_tests/rct.cpp
parentwallet: use the prefered rct case only when enough rct outs exist (diff)
downloadmonero-e5a9a4755b458bce66f6658a1051aff3b91c94b5.tar.xz
core_tests: fix a couple pre-rct tests using rct
Diffstat (limited to 'tests/core_tests/rct.cpp')
-rw-r--r--tests/core_tests/rct.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core_tests/rct.cpp b/tests/core_tests/rct.cpp
index d1ca40d9d..bf6ef136a 100644
--- a/tests/core_tests/rct.cpp
+++ b/tests/core_tests/rct.cpp
@@ -437,7 +437,7 @@ bool gen_rct_tx_pre_rct_increase_vin_and_fee::generate(std::vector<test_event_en
bool gen_rct_tx_pre_rct_remove_vin::generate(std::vector<test_event_entry>& events) const
{
const int mixin = 2;
- const int out_idx[] = {1, -1};
+ const int out_idx[] = {0, -1};
const uint64_t amount_paid = 10000;
return generate_with(events, out_idx, mixin, amount_paid, false,
NULL, [](transaction &tx) {tx.vin.pop_back();});
@@ -455,7 +455,7 @@ bool gen_rct_tx_rct_remove_vin::generate(std::vector<test_event_entry>& events)
bool gen_rct_tx_pre_rct_add_vout::generate(std::vector<test_event_entry>& events) const
{
const int mixin = 2;
- const int out_idx[] = {1, -1};
+ const int out_idx[] = {0, -1};
const uint64_t amount_paid = 10000;
return generate_with(events, out_idx, mixin, amount_paid, false,
NULL, [](transaction &tx) {tx.vout.push_back(tx.vout.back());});