diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 3c4b926a2..e9cf54bb4 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -1417,13 +1417,13 @@ UniValue getchaintips(const UniValue& params, bool fHelp) /* Build up a list of chain tips. We start with the list of all known blocks, and successively remove blocks that appear as pprev of another block. */ - static pthread_mutex_t mutex; static int32_t didinit; + /*static pthread_mutex_t mutex; static int32_t didinit; if ( didinit == 0 ) { pthread_mutex_init(&mutex,NULL); didinit = 1; } - pthread_mutex_lock(&mutex); + pthread_mutex_lock(&mutex);*/ std::set setTips; int32_t n = 0; BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex) @@ -1443,7 +1443,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp) setTips.erase(pprev); } fprintf(stderr,"iterations getchaintips %d\n",n); - pthread_mutex_unlock(&mutex); + //pthread_mutex_unlock(&mutex); // Always report the currently active tip. setTips.insert(chainActive.LastTip());