Skip to content

Commit 00ddbae

Browse files
committed
enable KIP0003 consensus rule
The KIP0003 consensus rule was added in the `dev` branch as "logging only", i.e. as disabled. However, in the `patch-s8-prepare-hf-test` branch, which we used for testing on hfnet, it's already enabled (as seen in [this commit](783fc1f)). For the release, we should enable this rule and make the logging optional using the hfnet category.
1 parent 0c42102 commit 00ddbae

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)