Protect komodo_snapshot() by cs_main lock

This commit is contained in:
Duke Leto
2018-07-18 06:54:43 +00:00
parent 5685e88a47
commit 9ef7fec1ef

View File

@@ -590,6 +590,7 @@ CBlockTreeDB *pblocktree = NULL;
UniValue komodo_snapshot()
{
LOCK(cs_main);
int64_t total = -1;
UniValue result(UniValue::VOBJ);