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 a133806 commit 2405395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/dagconfig/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ var TestnetParams = Params{

MaxBlockLevel: 250,
MergeDepth: defaultMergeDepth,
HFDAAScore: 6000000, // TODO: define the fork date DAAscore
HFDAAScore: 43200, // HF DAAscore to switch to khashv2 (12 hours after testnet launch)
}

// SimnetParams defines the network parameters for the simulation test Karlsen
Expand Down

0 comments on commit 2405395

Please sign in to comment.