mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
tests: hard fork list must end with a 0
This commit is contained in:
parent
074e602609
commit
f782d45827
@ -475,11 +475,11 @@ inline bool replay_events_through_core(cryptonote::core& cr, const std::vector<t
|
|||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
template<typename t_test_class>
|
template<typename t_test_class>
|
||||||
struct get_test_options {
|
struct get_test_options {
|
||||||
const std::pair<uint8_t, uint64_t> hard_forks[1];
|
const std::pair<uint8_t, uint64_t> hard_forks[2];
|
||||||
const cryptonote::test_options test_options = {
|
const cryptonote::test_options test_options = {
|
||||||
hard_forks
|
hard_forks
|
||||||
};
|
};
|
||||||
get_test_options():hard_forks{std::make_pair((uint8_t)1, (uint64_t)0)}{}
|
get_test_options():hard_forks{std::make_pair((uint8_t)1, (uint64_t)0), std::make_pair((uint8_t)0, (uint64_t)0)}{}
|
||||||
};
|
};
|
||||||
|
|
||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
|
@ -81,7 +81,7 @@ private:
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct get_test_options<gen_rct_tx_validation_base> {
|
struct get_test_options<gen_rct_tx_validation_base> {
|
||||||
const std::pair<uint8_t, uint64_t> hard_forks[3] = {std::make_pair(1, 0), std::make_pair(2, 1), std::make_pair(4, 65)};
|
const std::pair<uint8_t, uint64_t> hard_forks[4] = {std::make_pair(1, 0), std::make_pair(2, 1), std::make_pair(4, 65), std::make_pair(0, 0)};
|
||||||
const cryptonote::test_options test_options = {
|
const cryptonote::test_options test_options = {
|
||||||
hard_forks
|
hard_forks
|
||||||
};
|
};
|
||||||
|
@ -79,7 +79,7 @@ private:
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
struct get_test_options<gen_v2_tx_validation_base> {
|
struct get_test_options<gen_v2_tx_validation_base> {
|
||||||
const std::pair<uint8_t, uint64_t> hard_forks[2] = {std::make_pair(1, 0), std::make_pair(2, 1)};
|
const std::pair<uint8_t, uint64_t> hard_forks[3] = {std::make_pair(1, 0), std::make_pair(2, 1), std::make_pair(0, 0)};
|
||||||
const cryptonote::test_options test_options = {
|
const cryptonote::test_options test_options = {
|
||||||
hard_forks
|
hard_forks
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user