Skip to content

Commit

Permalink
Merge pull request #626 from KomodoPlatform/patch-enable-kip0003
Browse files Browse the repository at this point in the history
enable KIP0003 consensus rule
  • Loading branch information
ca333 authored Aug 20, 2024
2 parents 0c42102 + 00ddbae commit 3c4ae5d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/komodo_bitcoind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2057,12 +2057,11 @@ int32_t komodo_checkPOW(int64_t stakeTxValue, int32_t slowflag,CBlock *pblock,in
blk.vtx[0].vout[0].nValue <= blockReward &&
blk.vtx[0].vout[1].scriptPubKey.IsOpReturn();

LogPrintf("KIP0003 check for NN: ht.%d, hash.%s - %s\n",
height, blk.GetHash().ToString(),
fKIP0003Checked ? "PASSED!" : "FAILED!");
LogPrint("hfnet", "KIP0003 check for NN: ht.%d, hash.%s - %s\n",
height, blk.GetHash().ToString(),
fKIP0003Checked ? "PASSED!" : "FAILED!");

// Uncomment the following line if you need to return -1 on failure
// if (!fKIP0003Checked) return -1;
if (!fKIP0003Checked) return -1;
}

//fprintf(stderr,"komodo_checkPOW possible.%d slowflag.%d ht.%d notaryid.%d failed.%d\n",possible,slowflag,height,notaryid,failed);
Expand Down

0 comments on commit 3c4ae5d

Please sign in to comment.