diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-26 11:08:40 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-26 11:08:40 +0300 |
commit | dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a (patch) | |
tree | 134ef267ac273d3f8cda304a1d876502c655372a /tests/core_tests/chaingen.h | |
parent | Wallet API: transaction history in progress (diff) | |
parent | Merge pull request #803 (diff) | |
download | monero-dce5374660cc5c6fcf806fd6198f7da4ec5cbe5a.tar.xz |
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'tests/core_tests/chaingen.h')
-rw-r--r-- | tests/core_tests/chaingen.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 44170d116..652413b8a 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -470,13 +470,15 @@ inline bool replay_events_through_core(cryptonote::core& cr, const std::vector<t CATCH_ENTRY_L0("replay_events_through_core", false); } //-------------------------------------------------------------------------- -template<class t_test_class> +template<typename t_test_class> struct get_test_options { - const std::pair<uint8_t, uint64_t> hard_forks[1] = {std::make_pair((uint8_t)1, (uint64_t)0)}; + const std::pair<uint8_t, uint64_t> hard_forks[1]; const cryptonote::test_options test_options = { hard_forks }; + get_test_options():hard_forks{std::make_pair((uint8_t)1, (uint64_t)0)}{} }; + //-------------------------------------------------------------------------- template<class t_test_class> inline bool do_replay_events(std::vector<test_event_entry>& events) |