Skip to content

Commit 3c4ae5d

Browse files
authored
Merge pull request #626 from KomodoPlatform/patch-enable-kip0003
enable KIP0003 consensus rule
2 parents 0c42102 + 00ddbae commit 3c4ae5d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/komodo_bitcoind.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -2057,12 +2057,11 @@ int32_t komodo_checkPOW(int64_t stakeTxValue, int32_t slowflag,CBlock *pblock,in
20572057
blk.vtx[0].vout[0].nValue <= blockReward &&
20582058
blk.vtx[0].vout[1].scriptPubKey.IsOpReturn();
20592059

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

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

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

0 commit comments

Comments
 (0)