diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-01-21 12:18:39 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-19 11:28:18 +0000 |
| commit | d0663837d2800948cd51dfd8e2c7f74d293c86ff (patch) | |
| tree | d97328ea62f8a8f8a3c12eefddb13e95048c8750 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 2c171a9b02f8f23cc36db0465a4b587b60e629d5 (diff) | |
| download | monzero-core-d0663837d2800948cd51dfd8e2c7f74d293c86ff.tar.gz monzero-core-d0663837d2800948cd51dfd8e2c7f74d293c86ff.tar.xz monzero-core-d0663837d2800948cd51dfd8e2c7f74d293c86ff.zip | |
core: move hardforks into its own lib
So it can be used by others without encumbrance
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 0147bde23..90ae43b7b 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -51,6 +51,7 @@ using namespace epee; #include "blockchain_db/blockchain_db.h" #include "ringct/rctSigs.h" #include "common/notify.h" +#include "hardforks/hardforks.h" #include "version.h" #undef MONERO_DEFAULT_LOG_CATEGORY @@ -634,7 +635,7 @@ namespace cryptonote MERROR("Failed to parse block rate notify spec: " << e.what()); } - const std::pair<uint8_t, uint64_t> regtest_hard_forks[3] = {std::make_pair(1, 0), std::make_pair(Blockchain::get_hard_fork_heights(MAINNET).back().version, 1), std::make_pair(0, 0)}; + const std::pair<uint8_t, uint64_t> regtest_hard_forks[3] = {std::make_pair(1, 0), std::make_pair(mainnet_hard_forks[num_mainnet_hard_forks-1].version, 1), std::make_pair(0, 0)}; const cryptonote::test_options regtest_test_options = { regtest_hard_forks, 0 |
