From ac874e2d402b9a1d366bcec304faa769553b46f9 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Sun, 7 Apr 2019 18:15:20 +0200 Subject: tests: fix test_options initialization error --- tests/core_tests/chaingen.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/core_tests/chaingen.h') diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index f2bcb7787..64431960e 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -748,7 +748,7 @@ template struct get_test_options { const std::pair hard_forks[2]; const cryptonote::test_options test_options = { - hard_forks + hard_forks, 0 }; get_test_options():hard_forks{std::make_pair((uint8_t)1, (uint64_t)0), std::make_pair((uint8_t)0, (uint64_t)0)}{} }; @@ -776,7 +776,7 @@ inline bool do_replay_events_get_core(std::vector& events, cry // Hardforks can be specified in events. v_hardforks_t hardforks; - cryptonote::test_options test_options_tmp{}; + cryptonote::test_options test_options_tmp{nullptr, 0}; const cryptonote::test_options * test_options_ = >o.test_options; if (extract_hard_forks(events, hardforks)){ hardforks.push_back(std::make_pair((uint8_t)0, (uint64_t)0)); // terminator -- cgit v1.2.3