mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-10 13:13:27 +01:00
Merge pull request #5405
ffdbcfb6
core: don't check block rate nor fork time in regtest mode (moneromooo-monero)
This commit is contained in:
commit
ce2f46f76b
@ -1609,6 +1609,9 @@ namespace cryptonote
|
|||||||
//-----------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------
|
||||||
bool core::check_fork_time()
|
bool core::check_fork_time()
|
||||||
{
|
{
|
||||||
|
if (m_nettype == FAKECHAIN)
|
||||||
|
return true;
|
||||||
|
|
||||||
HardFork::State state = m_blockchain_storage.get_hard_fork_state();
|
HardFork::State state = m_blockchain_storage.get_hard_fork_state();
|
||||||
const el::Level level = el::Level::Warning;
|
const el::Level level = el::Level::Warning;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
@ -1824,7 +1827,7 @@ namespace cryptonote
|
|||||||
//-----------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------
|
||||||
bool core::check_block_rate()
|
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");
|
MDEBUG("Not checking block rate, offline or syncing");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user