diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:10:14 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:10:14 -0500 |
commit | c490e38f56bfe02ccdc3cf2f747722dbb201bdda (patch) | |
tree | 0c3d0f0ae2e692bf51408947e7f61ba796af07e0 /src | |
parent | Merge pull request #8786 (diff) | |
parent | core: do not force sync the db when finding a block in regtest mode (diff) | |
download | monero-c490e38f56bfe02ccdc3cf2f747722dbb201bdda.tar.xz |
Merge pull request #8840
503c3e0 core: do not force sync the db when finding a block in regtest mode (Crypto City)
Diffstat (limited to 'src')
-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 7b0c9e495..dd72b3375 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1558,7 +1558,8 @@ namespace cryptonote return false; } 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 update_miner_block_template(); m_miner.resume(); |