Call komodo_longestchain() on accept block failure

This commit is contained in:
jl777
2018-11-24 03:34:08 -11:00
parent f726810dd8
commit 120cbbceed

View File

@@ -5198,6 +5198,7 @@ bool ProcessNewBlock(bool from_miner,int32_t height,CValidationState &state, CNo
//fprintf(stderr,"request headers from failed process block peer\n");
pfrom->PushMessage("getheaders", chainActive.GetLocator(chainActive.LastTip()), uint256());
}*/
komodo_longestchain();
return error("%s: AcceptBlock FAILED", __func__);
}
//else fprintf(stderr,"added block %s %p\n",pindex->GetBlockHash().ToString().c_str(),pindex->pprev);