-
Notifications
You must be signed in to change notification settings - Fork 266
feat(withdrawals): Allow for Disabling Withdrawals [DO NOT MERGE] #2777
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
base: main
Are you sure you want to change the base?
Changes from 12 commits
11d3adc
e141967
c416f12
8f81a38
1f9b9c9
eb5df2c
368fd7e
f8b2016
b84c9ea
8c10052
7f0ae9b
cbffee5
6f76b58
0485ae0
23bd6d5
c018962
31f1bcb
b013aea
0cca53e
f366782
dc4ed01
32200e0
8a5b80d
79e3e61
23daa35
f0bd3ac
f5d3115
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,8 +67,10 @@ func (sp *StateProcessor) processOperations( | |
| } | ||
| } | ||
|
|
||
| if version.EqualsOrIsAfter(blk.GetForkVersion(), version.Electra()) { | ||
| // After Electra, validators can request withdrawals through execution requests which must be handled. | ||
| // After Electra, validators can request withdrawals through execution requests which must be handled. | ||
| // If withdrawals are enabled, process the withdrawals. Otherwise, the withdrawal requests are ignored | ||
| // to prevent withdrawals from excessively queuing up. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this true? It seems to me we just let withdrawals be enqueued rn.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch, i removed the logic but forgot to update comment |
||
| if version.EqualsOrIsAfter(blk.GetForkVersion(), version.Electra()) && sp.cs.WithdrawalsEnabled(blk.GetTimestamp()) { | ||
| requests, err := blk.GetBody().GetExecutionRequests() | ||
| if err != nil { | ||
| return err | ||
|
|
||
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.
I get the idea but not sure this would be backward, if we activate Pectra and some withdrawals are made before this hard fork. We'd have to go by slot I think? Or timestamp