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

app/eth2wrap: query previous block for synthetic proposals #1533

Merged
merged 4 commits into from
Dec 9, 2022

Conversation

corverroos
Copy link
Contributor

Query previous blocks to propose as synthetic blocks since only proposers can query the block_proposal endpoint.

category: bug
ticket: #1486

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Base: 54.18% // Head: 54.01% // Decreases project coverage by -0.16% ⚠️

Coverage data is based on head (1365cf4) compared to base (467a7a2).
Patch coverage: 56.60% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1533      +/-   ##
==========================================
- Coverage   54.18%   54.01%   -0.17%     
==========================================
  Files         150      150              
  Lines       19135    19232      +97     
==========================================
+ Hits        10368    10388      +20     
- Misses       7358     7427      +69     
- Partials     1409     1417       +8     
Impacted Files Coverage Δ
app/eth2wrap/eth2wrap_gen.go 12.35% <0.00%> (-8.71%) ⬇️
testutil/beaconmock/beaconmock.go 46.77% <0.00%> (-0.77%) ⬇️
testutil/beaconmock/options.go 32.39% <0.00%> (-0.25%) ⬇️
app/eth2wrap/synthproposer.go 72.76% <68.18%> (+8.30%) ⬆️
app/eth2wrap/eth2wrap.go 57.34% <0.00%> (-4.20%) ⬇️
p2p/bootnode.go 20.53% <0.00%> (-2.68%) ⬇️
app/vmock.go 74.09% <0.00%> (-1.56%) ⬇️
core/priority/prioritiser.go 61.31% <0.00%> (-1.24%) ⬇️
testutil/compose/lock.go 74.35% <0.00%> (-0.65%) ⬇️
... and 2 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +164 to +166
},
nil,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
},
nil,
)
}, nil)

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, it's auto-generated i think

block, err := h.syntheticBlock(ctx, slot)
if err != nil {
return nil, err
} else if block.Version != spec.DataVersionBellatrix {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be for fork versions >= bellatrix? Ex: Capella

Copy link
Contributor Author

Choose a reason for hiding this comment

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

go-eth2 only supports bellatrix blinded blocks at this point

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

LGTM!

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Dec 9, 2022
@obol-bulldozer obol-bulldozer bot merged commit 93758cd into main Dec 9, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/previoussynthblocks branch December 9, 2022 11:07
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.

2 participants