Skip to content

Commit

Permalink
HF DAAscore to switch to khashv2 (12 hours after testnet launch):
Browse files Browse the repository at this point in the history
We've experimented with 3 different hashing algorithm in testnet,
named khashv1, khashv1.5 and khashv2.

khashv1   = KarlsenHashv1
khashv1.5 = FishHash
khashv2   = FishHash Plus (KarlsenHashv2)

However at the end we've decided to use FishHash Plus as it was
result of security review of the FishHash algorithm. The PoW code
for FishHash is still there, but the expected blocks are either
version 1 or version 2. Therefore we decided to restart testnet-1
with shorter HF DAA score and don't need to maintain code for
special case in the network.
  • Loading branch information
lemois-1337 committed Aug 31, 2024
1 parent 565ac13 commit a4b63bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/core/src/config/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ pub const TESTNET_PARAMS: Params = Params {
skip_proof_of_work: false,
max_block_level: 250,
pruning_proof_m: 1000,
hf_daa_score: 6000000,
hf_daa_score: 43200, // HF DAAscore to switch to khashv2 (12 hours after testnet launch)
};

pub const TESTNET11_PARAMS: Params = Params {
Expand Down

0 comments on commit a4b63bb

Please sign in to comment.