Conversation
That was exactly the way I went initially but it turned out to be a longer and more complicated approach. Class hierarchy won't work in this case either. The only way to distinguish versions, for now, is to check whether the Also, because this check is an input parameter validation, I'd like to have it before any other checks for FCU as well. However, the timestamp and block number logic are a bit complicated there, so I left it there. Things may change with future version checks though. |
My whole point is on semantics and readability lets name it V1/V2 and make validation based on that. Will be easier to read and translate from specs, let me try to provide example |
If we go with versions, then we will have |
|
created versioning PR: #5157 |
#5157) * Simple versioning and simplified transparent message version validation * remove redundant code * fix * fix v2 * fix searching for ReleaseSpec, prioritizing TImeStamp if not null * More refactors * revert change in ForkInfo * revert changes * fix * Refactor * Add comment
18abe19 to
f2b5bae
Compare
Changes
Implemented ethereum/execution-apis#337 that unifies Engine API failure responses.
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Withdrawals Hive tests passing.