-
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/fetcher: add support for DutySyncContribution
#1355
Conversation
Codecov ReportBase: 53.64% // Head: 53.67% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1355 +/- ##
==========================================
+ Coverage 53.64% 53.67% +0.03%
==========================================
Files 142 142
Lines 17265 17381 +116
==========================================
+ Hits 9261 9329 +68
- Misses 6714 6753 +39
- Partials 1290 1299 +9
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. |
2c148b6
to
7338411
Compare
b66a9ec
to
0f4ef14
Compare
data := altair.SyncAggregatorSelectionData{ | ||
Slot: s.Slot, | ||
SubcommitteeIndex: uint64(s.SubcommitteeIndex), | ||
} | ||
|
||
return data.HashTreeRoot() |
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.
this can be done inline:
return altair.SyncAggregatorSelectionData{
Slot: s.Slot,
SubcommitteeIndex: uint64(s.SubcommitteeIndex),
}.HashTreeRoot()
@@ -807,6 +807,72 @@ func (s *BeaconCommitteeSelection) UnmarshalJSON(input []byte) error { | |||
return s.BeaconCommitteeSelection.UnmarshalJSON(input) | |||
} | |||
|
|||
// SyncCommitteeSelection wraps an eth2exp.SyncCommitteeSelection and implements SignedData. | |||
type SyncCommitteeSelection struct { |
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.
add type assertion on top of this file for this type
Adds support for
DutySyncContribution
to fetcher.category: feature
ticket: #1266