-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
frankcrypto2023
commented
Nov 29, 2023
- Use blocks generated by all DAGs as the basis for difficulty adjustment
common/util/math/min_test.go
Outdated
package math_test | ||
|
||
import ( | ||
utilMath "github.com/kaspanet/kaspad/util/math" |
There was a problem hiding this comment.
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.
core/blockchain/difficulty.go
Outdated
break | ||
} | ||
|
||
for id := range oldBlock.GetParents().GetMap() { |
There was a problem hiding this comment.
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
49b08dc
to
248ddd6
Compare