This commit is contained in:
jl777
2018-09-21 20:55:02 -11:00
parent 9892eb8a59
commit 4e90a436f6

View File

@@ -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<const CBlockIndex*, CompareBlocksByHeight> setTips;
int32_t n = 0;