-
Notifications
You must be signed in to change notification settings - Fork 90
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
core: add signed and unsigned types for sync duties #1202
Conversation
Codecov ReportBase: 53.33% // Head: 52.83% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1202 +/- ##
==========================================
- Coverage 53.33% 52.83% -0.51%
==========================================
Files 133 133
Lines 15505 15648 +143
==========================================
- Hits 8269 8267 -2
- Misses 6045 6185 +140
- Partials 1191 1196 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
size := 128 | ||
index := rand.Intn(size) | ||
resp := bitfield.NewBitvector128() |
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.
size := 128 | |
index := rand.Intn(size) | |
resp := bitfield.NewBitvector128() | |
var ( | |
size = 128 | |
index = rand.Intn(size) | |
resp = bitfield.NewBitvector128() | |
) |
testutil/random.go
Outdated
return &altair.SyncCommitteeContribution{ | ||
Slot: RandomSlot(), | ||
BeaconBlockRoot: RandomRoot(), | ||
SubcommitteeIndex: 0, |
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.
why not a random index?
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.
done
testutil/random.go
Outdated
|
||
func RandomSyncContributionAndProof() *altair.ContributionAndProof { | ||
return &altair.ContributionAndProof{ | ||
AggregatorIndex: 0, |
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.
why not a random index? Like
AggregatorIndex: rand.Uint64()
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.
done
Adds signed and unsigned types for sync committee duties.
category: feature
ticket: #1177