diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-07 13:29:21 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-07 13:30:02 +0000 |
commit | ffdbcfb6b324fdad0de93d520ba00fe3bc94ed85 (patch) | |
tree | 539a192fe5ca104c483278feffa07c4e2a3c66f7 /src/cryptonote_core | |
parent | Merge pull request #5364 (diff) | |
download | monero-ffdbcfb6b324fdad0de93d520ba00fe3bc94ed85.tar.xz |
core: don't check block rate nor fork time in regtest mode
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 8ab7d174c..3284edd9d 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1594,6 +1594,9 @@ namespace cryptonote //----------------------------------------------------------------------------------------------- bool core::check_fork_time() { + if (m_nettype == FAKECHAIN) + return true; + HardFork::State state = m_blockchain_storage.get_hard_fork_state(); const el::Level level = el::Level::Warning; switch (state) { @@ -1809,7 +1812,7 @@ namespace cryptonote //----------------------------------------------------------------------------------------------- bool core::check_block_rate() { - if (m_offline || m_target_blockchain_height > get_current_blockchain_height()) + if (m_offline || m_nettype == FAKECHAIN || m_target_blockchain_height > get_current_blockchain_height()) { MDEBUG("Not checking block rate, offline or syncing"); return true; |