Skip to content

Commit

Permalink
Print prev block when proof of stake kernel check fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbrod committed Feb 7, 2018
1 parent 3e2a0c7 commit 5707a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4200,7 +4200,9 @@ bool CBlock::AcceptBlock(bool generated_by_me)
printf("AcceptBlock: Proof Of Stake V8 %d\n",nVersion);
if(!CheckProofOfStakeV8(pindexPrev, *this, generated_by_me, hashProof))
{
return error("WARNING: AcceptBlock(): check proof-of-stake failed for block %s, nonce %f \n", hash.ToString().c_str(),(double)nNonce);
error("WARNING: AcceptBlock(): check proof-of-stake failed for block %s, nonce %f \n", hash.ToString().c_str(),(double)nNonce);
printf(" prev %s\n",pindexPrev->GetBlockHash().ToString().c_str());
return false;
}
}

Expand Down

0 comments on commit 5707a7d

Please sign in to comment.