From a4b63bbf3605c503010450ddf2c5d4cf06d94d50 Mon Sep 17 00:00:00 2001 From: Lemois 1337 Date: Sat, 31 Aug 2024 20:43:19 +0200 Subject: [PATCH] HF DAAscore to switch to khashv2 (12 hours after testnet launch): 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. --- consensus/core/src/config/params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/core/src/config/params.rs b/consensus/core/src/config/params.rs index 5d3cea3..4f21c38 100644 --- a/consensus/core/src/config/params.rs +++ b/consensus/core/src/config/params.rs @@ -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 {