From 4e90a436f6547e055c92fa6965701a4e612e9746 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Sep 2018 20:55:02 -1100 Subject: [PATCH] Test --- src/rpcblockchain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 4915bd0cf..3c4b926a2 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -1419,7 +1419,10 @@ UniValue getchaintips(const UniValue& params, bool fHelp) of another block. */ static pthread_mutex_t mutex; static int32_t didinit; if ( didinit == 0 ) + { pthread_mutex_init(&mutex,NULL); + didinit = 1; + } pthread_mutex_lock(&mutex); std::set setTips; int32_t n = 0;