This commit is contained in:
Duke Leto
2020-12-08 20:38:27 -05:00
parent 5207bffe5b
commit f6f1579917

View File

@@ -5694,13 +5694,7 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo
mapBlockSource[pindex->GetBlockHash()] = pfrom->GetId();
}
CheckBlockIndex();
if (!ret && futureblock == 0)
{
/*if ( SMART_CHAIN_SYMBOL[0] == 0 )
{
//fprintf(stderr,"request headers from failed process block peer\n");
pfrom->PushMessage("getheaders", chainActive.GetLocator(chainActive.LastTip()), uint256());
}*/
if (!ret && futureblock == 0) {
hush_longestchain();
return error("%s: AcceptBlock FAILED", __func__);
}