mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 11:50:45 -04:00
Merge pull request #8840
503c3e0
core: do not force sync the db when finding a block in regtest mode (Crypto City)
This commit is contained in:
commit
c490e38f56
1 changed files with 2 additions and 1 deletions
|
@ -1558,7 +1558,8 @@ namespace cryptonote
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
m_blockchain_storage.add_new_block(b, bvc);
|
m_blockchain_storage.add_new_block(b, bvc);
|
||||||
cleanup_handle_incoming_blocks(true);
|
const bool force_sync = m_nettype != FAKECHAIN;
|
||||||
|
cleanup_handle_incoming_blocks(force_sync);
|
||||||
//anyway - update miner template
|
//anyway - update miner template
|
||||||
update_miner_block_template();
|
update_miner_block_template();
|
||||||
m_miner.resume();
|
m_miner.resume();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue