From 3036a2412d3cd67892193d56385281e912967e26 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Sep 2018 20:52:38 -1100 Subject: [PATCH] Test --- src/rpcblockchain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 92f0c07a8..39f62dfa1 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -1419,8 +1419,8 @@ UniValue getchaintips(const UniValue& params, bool fHelp) of another block. */ static pthread_mutex_t mutex; static int32_t didinit; if ( didinit == 0 ) - portable_mutex_init(&mutex); - portable_mutex_lock(&mutex); + pthread_mutex_init(&mutex); + pthread_mutex_lock(&mutex); std::set setTips; int32_t n = 0; BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex) @@ -1440,7 +1440,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp) setTips.erase(pprev); } fprintf(stderr,"iterations getchaintips %d\n",n); - portable_mutex_unlock(&mutex); + pthread_mutex_unlock(&mutex); // Always report the currently active tip. setTips.insert(chainActive.LastTip());