Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fishhash plus implementation with hard fork procedure #47

Conversation

okilisan
Copy link

HF defined at DAA score 6,000,000
HF date will be calculated in a future commit

HF defined at DAA score 6,000,000
HF date will be calculated in a future commit
@okilisan okilisan requested review from lemois-1337 and wam-rd March 19, 2024 22:54
Copy link
Collaborator

@wam-rd wam-rd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok
tested locally with success with algo switch on block 50
tested on testnet-1 with success.
I will test the sync form 1 node to another freshly hard forked, to validate the block header validation algo switch.
I approve this PR and will continue my testings

Comment on lines +62 to +67
/*
if header.Version() != constants.BlockVersion {
return errors.Wrapf(
ruleerrors.ErrWrongBlockVersion, "The block version should be %d", constants.BlockVersion)
}
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why this is commented? Explicit error in case an old node would send a wrong version block after hardfork is needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been replaced by a conditional check on BlockVersionAfterHF BlockVersionBeforeHF to reject block with bad version after or before HF

@lemois-1337
Copy link
Collaborator

I will merge it, we will define HF date later and define DAA score.

@lemois-1337 lemois-1337 merged commit 1b6644b into karlsen-network:2024_testnet_1_fishhashplus Mar 21, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants