Test
This commit is contained in:
@@ -4393,10 +4393,10 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
|
|||||||
bool static LoadBlockIndexDB()
|
bool static LoadBlockIndexDB()
|
||||||
{
|
{
|
||||||
const CChainParams& chainparams = Params();
|
const CChainParams& chainparams = Params();
|
||||||
//fprintf(stderr,"load blockindexDB %u\n",(uint32_t)time(NULL));
|
LogPrintf("%s: start loading guts\n", __func__);
|
||||||
if (!pblocktree->LoadBlockIndexGuts())
|
if (!pblocktree->LoadBlockIndexGuts())
|
||||||
return false;
|
return false;
|
||||||
//fprintf(stderr,"load blockindexDB guts %u\n",(uint32_t)time(NULL));
|
LogPrintf("%s: loaded guts\n", __func__);
|
||||||
boost::this_thread::interruption_point();
|
boost::this_thread::interruption_point();
|
||||||
|
|
||||||
// Calculate nChainWork
|
// Calculate nChainWork
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ unsigned int TxConfirmStats::FindBucketIndex(double val)
|
|||||||
auto it = bucketMap.lower_bound(val);
|
auto it = bucketMap.lower_bound(val);
|
||||||
if ( it != bucketMap.end() )
|
if ( it != bucketMap.end() )
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
//static uint32_t counter;
|
||||||
if ( counter++ < 1 )
|
//if ( counter++ < 1 )
|
||||||
fprintf(stderr,"%s FindBucketIndex violation: from val %f\n",ASSETCHAINS_SYMBOL,val);
|
// fprintf(stderr,"%s FindBucketIndex violation: from val %f\n",ASSETCHAINS_SYMBOL,val);
|
||||||
}
|
}
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user