Skip to content

Commit

Permalink
enable KIP0003 consensus rule
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DeckerSU committed Aug 20, 2024
1 parent 0c42102 commit 00ddbae
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 00ddbae

Please sign in to comment.