From e5a9a4755b458bce66f6658a1051aff3b91c94b5 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 28 Jul 2016 19:04:51 +0100 Subject: [PATCH] core_tests: fix a couple pre-rct tests using rct --- tests/core_tests/rct.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core_tests/rct.cpp b/tests/core_tests/rct.cpp index d1ca40d9..bf6ef136 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& 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& events) bool gen_rct_tx_pre_rct_add_vout::generate(std::vector& 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());});