From fc021e123b59af4492e71b0f4b179f2602d3e9c7 Mon Sep 17 00:00:00 2001 From: Diego del Corral Tercero Date: Fri, 3 Dec 2021 13:32:15 +0100 Subject: [PATCH] Check depth on lambda return --- src/masternodes/rpc_masternodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/masternodes/rpc_masternodes.cpp b/src/masternodes/rpc_masternodes.cpp index b1c5008e1f..5b474b2900 100644 --- a/src/masternodes/rpc_masternodes.cpp +++ b/src/masternodes/rpc_masternodes.cpp @@ -821,7 +821,7 @@ UniValue getmasternodeblocks(const JSONRPCRequest& request) { depth--; } - return true; + return depth != 0; }; pcustomcsview->ForEachSubNode([&](const SubNodeBlockTimeKey &key, CLazySerialize){