From c779fa885a5160a47833086c9b3de1cae402d8b1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 2 Jul 2019 02:40:25 -1100 Subject: [PATCH] Skip flush state --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e41ea3cbb..96b8edabe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6494,7 +6494,9 @@ bool InitBlockIndex() { if (!ActivateBestChain(true, state, &block)) return error("LoadBlockIndex(): genesis block cannot be activated"); // Force a chainstate write so that when we VerifyDB in a moment, it doesn't check stale data - return FlushStateToDisk(state, FLUSH_STATE_ALWAYS); + if ( KOMODO_NSPV == 0 ) + return FlushStateToDisk(state, FLUSH_STATE_ALWAYS); + else return(true); } catch (const std::runtime_error& e) { return error("LoadBlockIndex(): failed to initialize block database: %s", e.what()); }