Skip to content

Commit

Permalink
Merge pull request #958 from tomasbrod/checkposkernelagain
Browse files Browse the repository at this point in the history
Double check proof of stake kernel.
  • Loading branch information
denravonska committed Feb 24, 2018
2 parents 1103aed + 8fa46ea commit 77939c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2887,6 +2887,12 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck, boo

bool bIsDPOR = false;

if(nVersion>=8)
{
uint256 tmp_hashProof;
if(!CheckProofOfStakeV8(pindex->pprev, *this, /*generated_by_me*/ false, tmp_hashProof))
return error("ConnectBlock(): check proof-of-stake failed");
}

for (auto &tx : vtx)
{
Expand Down

0 comments on commit 77939c0

Please sign in to comment.