aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/transaction_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core_tests/transaction_tests.cpp')
-rw-r--r--tests/core_tests/transaction_tests.cpp6
1 files changed, 2 insertions, 4 deletions
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<txout_to_key>(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<uint8_t>(), tx_rc1, 0);
CHECK_AND_ASSERT_MES(r, false, "failed to construct transaction");
crypto::hash pref_hash = get_transaction_prefix_hash(tx_rc1);