aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/json_serialization.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-05-20 23:42:54 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-05-20 23:42:54 -0500
commit1ec7eae0364a9d13db6aebc5819468f07667e7ab (patch)
tree838c211368e6b486fef301b696cfc0bddbf6647b /tests/unit_tests/json_serialization.cpp
parent2f0503d7f3462410a8c21a7baca35fa18763b4b7 (diff)
parentdd47d03cf2b5b3dc59cd99aca247d1025679f83a (diff)
downloadmonzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.tar.gz
monzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.tar.xz
monzero-core-1ec7eae0364a9d13db6aebc5819468f07667e7ab.zip
Merge pull request #9311
dd47d03 Enforce Tx unlock_time is Zero by Relay Rule [RELEASE] (jeffro256)
Diffstat (limited to 'tests/unit_tests/json_serialization.cpp')
-rw-r--r--tests/unit_tests/json_serialization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/json_serialization.cpp b/tests/unit_tests/json_serialization.cpp
index aa46b68dc..9525d23ea 100644
--- a/tests/unit_tests/json_serialization.cpp
+++ b/tests/unit_tests/json_serialization.cpp
@@ -78,7 +78,7 @@ namespace test
std::unordered_map<crypto::public_key, cryptonote::subaddress_index> subaddresses;
subaddresses[from.m_account_address.m_spend_public_key] = {0,0};
- if (!cryptonote::construct_tx_and_get_tx_key(from, subaddresses, actual_sources, to, boost::none, {}, tx, 0, tx_key, extra_keys, rct, { bulletproof ? rct::RangeProofBulletproof : rct::RangeProofBorromean, bulletproof ? 2 : 0 }))
+ if (!cryptonote::construct_tx_and_get_tx_key(from, subaddresses, actual_sources, to, boost::none, {}, tx, tx_key, extra_keys, rct, { bulletproof ? rct::RangeProofBulletproof : rct::RangeProofBorromean, bulletproof ? 2 : 0 }))
throw std::runtime_error{"transaction construction error"};
return tx;