From 333f975760c156727dd7408f87e937af856d8bf1 Mon Sep 17 00:00:00 2001 From: mydesktop Date: Sat, 3 May 2014 12:19:43 -0400 Subject: initial [broken] update --- tests/core_tests/transaction_tests.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/core_tests/transaction_tests.cpp') diff --git a/tests/core_tests/transaction_tests.cpp b/tests/core_tests/transaction_tests.cpp index 07e6661d8..635c41503 100644 --- a/tests/core_tests/transaction_tests.cpp +++ b/tests/core_tests/transaction_tests.cpp @@ -81,9 +81,7 @@ bool test_transaction_generation_and_ring_signature() oe.second = boost::get(tx_mine_6.vout[0].target).key; src.outputs.push_back(oe); - crypto::public_key tx_pub_key = null_pkey; - cryptonote::parse_and_validate_tx_extra(tx_mine_2, tx_pub_key); - src.real_out_tx_key = tx_pub_key; + src.real_out_tx_key = cryptonote::get_tx_pub_key_from_extra(tx_mine_2); src.real_output = 1; src.real_output_in_tx_index = 0; } @@ -95,7 +93,7 @@ bool test_transaction_generation_and_ring_signature() destinations.push_back(td); transaction tx_rc1; - bool r = construct_tx(miner_acc2.get_keys(), sources, destinations, tx_rc1, 0); + bool r = construct_tx(miner_acc2.get_keys(), sources, destinations, std::vector(), tx_rc1, 0); CHECK_AND_ASSERT_MES(r, false, "failed to construct transaction"); crypto::hash pref_hash = get_transaction_prefix_hash(tx_rc1); -- cgit v1.2.3