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

core/fetcher: add support for DutyAggregator #1118

Merged
merged 3 commits into from
Sep 13, 2022

Conversation

xenowits
Copy link
Contributor

Add support for DutyAggregator to fetcher.

category: feature
ticket: #1088

@codecov
Copy link

codecov bot commented Sep 12, 2022

Codecov Report

Merging #1118 (22ef729) into main (2f60f09) will decrease coverage by 0.00%.
The diff coverage is 34.37%.

@@            Coverage Diff             @@
##             main    #1118      +/-   ##
==========================================
- Coverage   53.06%   53.06%   -0.01%     
==========================================
  Files         128      128              
  Lines       14626    14683      +57     
==========================================
+ Hits         7762     7792      +30     
- Misses       5748     5773      +25     
- Partials     1116     1118       +2     
Impacted Files Coverage Δ
core/signeddata.go 38.52% <ø> (ø)
core/unsigneddata.go 37.24% <0.00%> (-4.00%) ⬇️
core/fetcher/fetcher.go 60.00% <48.88%> (-6.40%) ⬇️
core/scheduler/scheduler.go 73.85% <0.00%> (+0.53%) ⬆️
app/app.go 59.88% <0.00%> (+0.59%) ⬆️
core/dutydb/memory.go 70.89% <0.00%> (+1.11%) ⬆️
core/qbft/qbft.go 81.97% <0.00%> (+1.50%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@xenowits xenowits changed the base branch from main to xenowits/scheduler-dutyagg September 12, 2022 16:34
Base automatically changed from xenowits/scheduler-dutyagg to main September 12, 2022 16:50
@xenowits xenowits self-assigned this Sep 12, 2022
@xenowits xenowits force-pushed the xenowits/fetcher-duty-aggregator branch from 10f4b7a to 808655f Compare September 12, 2022 16:57
@xenowits xenowits linked an issue Sep 12, 2022 that may be closed by this pull request
core/fetcher/fetcher.go Show resolved Hide resolved
return core.UnsignedDataSet{}, err
}

resp[pubkey] = core.AggregatedAttestation{
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't there a core.NewAggregateAttesation(aggAtt) function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I created a new type for aggregate attestation implementing unsignedData

// AggregatedAttestation wraps Attestation and implements the UnsignedData interface.
type AggregatedAttestation struct {
	eth2p0.Attestation
}

core/fetcher/fetcher_test.go Outdated Show resolved Hide resolved
@xenowits xenowits force-pushed the xenowits/fetcher-duty-aggregator branch from 808655f to 22ef729 Compare September 13, 2022 07:27
@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Sep 13, 2022
@obol-bulldozer obol-bulldozer bot merged commit eed2dad into main Sep 13, 2022
@obol-bulldozer obol-bulldozer bot deleted the xenowits/fetcher-duty-aggregator branch September 13, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for DutyAggregator to fetcher
2 participants