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

Modify difficulty adjustment #580

Merged
merged 15 commits into from
Dec 11, 2023
Merged

Conversation

frankcrypto2023
Copy link
Collaborator

  • Use blocks generated by all DAGs as the basis for difficulty adjustment

package math_test

import (
utilMath "github.com/kaspanet/kaspad/util/math"
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have to add the extra dependence.

@dindinw dindinw requested a review from lochjin November 30, 2023 01:09
break
}

for id := range oldBlock.GetParents().GetMap() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The getBlockWindows result of each run may be different because the selection of blocks is not detailed and specific enough

@dindinw dindinw merged commit b3c9421 into Qitmeer:dev/1.2 Dec 11, 2023
2 of 3 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.

4 participants