-
Notifications
You must be signed in to change notification settings - Fork 803
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
[WIP] Withdrawals #4552
[WIP] Withdrawals #4552
Conversation
76a06b2
to
15ae2db
Compare
Marius' withdrawals test vectors: |
efde892
to
f10a592
Compare
This is forkchoice request I used to test, adapted from the data in https://hackmd.io/PqZgMpnkSWCWv5joJoFymQ
|
56b9d48
to
3c30ee7
Compare
Get Payload V2
|
New Payload V2
|
fcU V2 following newPayload
|
@JsonProperty("prevRandao") final String prevRandao, | ||
@JsonProperty("suggestedFeeRecipient") final String suggestedFeeRecipient, | ||
@JsonProperty("withdrawals") final List<WithdrawalParameter> withdrawals) { | ||
this.timestamp = Long.decode(timestamp); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
.../java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/parameters/WithdrawalParameter.java
Fixed
Show fixed
Hide fixed
.../java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/parameters/WithdrawalParameter.java
Fixed
Show fixed
Hide fixed
f76a53c
to
88f7217
Compare
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Jason Frame <jason.frame@consensys.net>
…hortHexString) Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
This is probably temporary measure and we will need to detect the block using a timestamp in the future The shanghai.json is useless probably now Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
f58aa28
to
a69d099
Compare
Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
a69d099
to
0538244
Compare
…pella. This commit might break post-shanghai V2 until I switch the validation depending on the fork. Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Hacky pre/post shanghai validation Serialize UInt64 toQuantityHexString instead of toShortHexString so 0 is returned as "0x0" instead of "0x" Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…t contain null withdrawals This means shanghai can be activated before capella which makes devnets a lot smoother, rather than having to perfectly align capella timestamp with shanghaiBlock Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…n rules Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
…that contain null withdrawals This was previously allowed to help with interop with clients that sometimes sent fcuV1 post-capella, but it was off-spec. Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Jason Frame <jason.frame@consensys.net>
6dff0fc
to
cf28b55
Compare
…bled at genesis Signed-off-by: Jason Frame <jason.frame@consensys.net>
Signed-off-by: Jason Frame <jason.frame@consensys.net>
Signed-off-by: Jiri Peinlich jiri.peinlich@gmail.com
No tests so far, It compiles....