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

Add schemas for withdrawals from EIP-4895 #334

Merged
merged 4 commits into from
Jan 27, 2023

Conversation

ralexstokes
Copy link
Member

^

Comment on lines 90 to 95
withdrawals:
anyOf:
- title: Full withdrawals
type: array
items:
$ref: '#/components/schemas/Withdrawal'
Copy link
Member Author

Choose a reason for hiding this comment

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

to confirm, I expect this to encode the following behavior:

pre-fork, the field is absent or null
post-fork, the field is an array full of withdrawals or the empty array

Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Generally looks good, but this will need tests added. For info on generating tests, see this document.

src/schemas/block.yaml Outdated Show resolved Hide resolved
src/schemas/withdrawal.yaml Outdated Show resolved Hide resolved
siladu added a commit to siladu/besu that referenced this pull request Dec 20, 2022
…kByNumber

As per ethereum/execution-apis#334

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
@lightclient
Copy link
Member

We should try to get this merged before next release.

@lightclient
Copy link
Member

I extended rpctestgen to support withdrawals and generated some tests.

src/schemas/block.yaml Outdated Show resolved Hide resolved
Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Hmm, one final consideration is should withdrawals always be returned or only if explicitly requested (similarly to transaction hashes vs. hydrated transactions).

@ralexstokes
Copy link
Member Author

one final consideration is should withdrawals always be returned

yes, don't complicate the API w/o good reason

@lightclient lightclient merged commit 070e33b into ethereum:main Jan 27, 2023
@ralexstokes ralexstokes deleted the 4895-updates branch January 30, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants