From f36f57031087685f669398c25882e3f3fc31cdeb Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 14 Jul 2023 22:43:56 +0200 Subject: [PATCH] Implemented test for the issue related to TX_SERVICE_ATTACHMENT_ENCRYPT_BODY_ISOLATE_AUDITABLE with outgoing transactions --- src/wallet/wallet2.h | 4 +++- tests/core_tests/chaingen_main.cpp | 2 ++ tests/core_tests/chaingen_tests_list.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 020b824d..85871bbb 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -995,6 +995,8 @@ namespace tools bool encrypt_buffer(const std::string& buff, std::string& res_buff); bool decrypt_buffer(const std::string& buff, std::string& res_buff); + construct_tx_param get_default_construct_tx_param(); + private: // -------- t_transport_state_notifier ------------------------------------------------ @@ -1073,7 +1075,7 @@ private: template bool process_input_t(const input_t& in_t, wallet2::process_transaction_context& ptc, const currency::transaction& tx); - construct_tx_param get_default_construct_tx_param(); + uint64_t get_tx_expiration_median() const; diff --git a/tests/core_tests/chaingen_main.cpp b/tests/core_tests/chaingen_main.cpp index 7cc413d3..68de9948 100644 --- a/tests/core_tests/chaingen_main.cpp +++ b/tests/core_tests/chaingen_main.cpp @@ -1258,6 +1258,8 @@ int main(int argc, char* argv[]) GENERATE_AND_PLAY(zarcanum_block_with_txs); GENERATE_AND_PLAY(asset_depoyment_and_few_zc_utxos); + GENERATE_AND_PLAY(attachment_isolation_test); + // GENERATE_AND_PLAY(gen_block_reward); // END OF TESTS */ diff --git a/tests/core_tests/chaingen_tests_list.h b/tests/core_tests/chaingen_tests_list.h index a44af329..2dccb4e3 100644 --- a/tests/core_tests/chaingen_tests_list.h +++ b/tests/core_tests/chaingen_tests_list.h @@ -43,3 +43,4 @@ #include "zarcanum_test.h" #include "multiassets_test.h" #include "ionic_swap_tests.h" +#include "attachment_isolation_encryption_test.h" \ No newline at end of file