From 9ef7fec1efd4f45ca603fbd7a25aa2beae4a5f64 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Wed, 18 Jul 2018 06:54:43 +0000 Subject: [PATCH] Protect komodo_snapshot() by cs_main lock --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 1376c3c7b..aa4435843 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -590,6 +590,7 @@ CBlockTreeDB *pblocktree = NULL; UniValue komodo_snapshot() { + LOCK(cs_main); int64_t total = -1; UniValue result(UniValue::VOBJ);