-
Notifications
You must be signed in to change notification settings - Fork 377
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
Conversation
src/schemas/block.yaml
Outdated
withdrawals: | ||
anyOf: | ||
- title: Full withdrawals | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Withdrawal' |
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.
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
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.
Generally looks good, but this will need tests added. For info on generating tests, see this document.
6580a66
to
5227dbb
Compare
…kByNumber As per ethereum/execution-apis#334 Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
We should try to get this merged before next release. |
5227dbb
to
304e786
Compare
304e786
to
3bac993
Compare
3bac993
to
e4b9a36
Compare
I extended rpctestgen to support withdrawals and generated some tests. |
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.
Hmm, one final consideration is should withdrawals always be returned or only if explicitly requested (similarly to transaction hashes vs. hydrated transactions).
yes, don't complicate the API w/o good reason |
b12d05f
to
692b5e6
Compare
^