-
Notifications
You must be signed in to change notification settings - Fork 223
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
Adding DAA score #1596
Adding DAA score #1596
Conversation
|
||
// SerializeUint64 serializes a uint64 | ||
func SerializeUint64(value uint64) []byte { | ||
var keyBytes [8]byte |
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.
Replace the 8 here with uint64Length
?
externalapi.DomainHashSize) | ||
} | ||
|
||
numHashes := len(hashesBytes) / externalapi.DomainHashSize |
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.
Nice :)
Codecov Report
@@ Coverage Diff @@
## v0.10.0-dev #1596 +/- ##
===============================================
- Coverage 60.05% 59.95% -0.10%
===============================================
Files 514 515 +1
Lines 20236 20369 +133
===============================================
+ Hits 12152 12212 +60
- Misses 6175 6227 +52
- Partials 1909 1930 +21
Continue to review full report at Codecov.
|
domain/consensus/factory.go
Outdated
@@ -126,6 +127,7 @@ func (f *factory) NewConsensus(dagParams *dagconfig.Params, db infrastructuredat | |||
headersSelectedTipStore := headersselectedtipstore.New() | |||
finalityStore := finalitystore.New(200, preallocateCaches) | |||
headersSelectedChainStore := headersselectedchainstore.New(pruningWindowSizeForCaches, preallocateCaches) | |||
daaBlocksStore := daablocksstore.New(pruningWindowSizeForCaches, preallocateCaches) |
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.
Maybe split the cache size to 2:
- DAA score at size: pruningWindowSizeForCaches.
- Derge Set for FinalityWindow only.
This is part of #1259