Shanghai Engine API Updates#4945
Conversation
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
siladu
left a comment
There was a problem hiding this comment.
Couple of nits but LGTM.
Will let a second reviewer approve since I paired with you on this a bit.
...r/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineForkchoiceUpdatedTest.java
Outdated
Show resolved
Hide resolved
...erledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineNewPayloadTest.java
Outdated
Show resolved
Hide resolved
| return false; | ||
| } | ||
|
|
||
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { |
There was a problem hiding this comment.
I prefer 'expected' over 'correct' like your other tests: expectedInvalidBlockHashStatus
There was a problem hiding this comment.
or just getInvalidBlockHashStatus
There was a problem hiding this comment.
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { | |
| protected ExecutionEngineJsonRpcMethod.EngineStatus getInvalidBlockHashStatus() { |
There was a problem hiding this comment.
I'd prefer expected too - since we expect different status for the same error for V1 and V2.
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
| return false; | ||
| } | ||
|
|
||
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { |
There was a problem hiding this comment.
or just getInvalidBlockHashStatus
| } | ||
|
|
||
| @Override | ||
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { |
There was a problem hiding this comment.
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { | |
| protected ExecutionEngineJsonRpcMethod.EngineStatus getInvalidBlockHashStatus() { |
| return false; | ||
| } | ||
|
|
||
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { |
There was a problem hiding this comment.
| protected ExecutionEngineJsonRpcMethod.EngineStatus getCorrectInvalidBlockHashStatus() { | |
| protected ExecutionEngineJsonRpcMethod.EngineStatus getInvalidBlockHashStatus() { |
| "Invalid payload attributes: {}", | ||
| () -> | ||
| maybePayloadAttributes.map(EnginePayloadAttributesParameter::serialize).orElse(null)); | ||
| return new JsonRpcErrorResponse(requestId, JsonRpcError.INVALID_PAYLOAD_ATTRIBUTES); |
There was a problem hiding this comment.
I didn't see this change mentioned in ethereum/execution-apis#338 - is this something different?
There was a problem hiding this comment.
Yea, bring some changes from ethereum/execution-apis#337 too. Sorry should have updated the description.
There was a problem hiding this comment.
my bad, I got Zhenyang to crowbar that change in too :)
Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com>
| "Invalid payload attributes: {}", | ||
| () -> | ||
| maybePayloadAttributes.map(EnginePayloadAttributesParameter::serialize).orElse(null)); | ||
| return new JsonRpcErrorResponse(requestId, JsonRpcError.INVALID_PAYLOAD_ATTRIBUTES); |
.../hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/AbstractEngineNewPayload.java
Show resolved
Hide resolved
...va/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineNewPayloadV1.java
Show resolved
Hide resolved
Update engine API to include some new changes introduced in - ethereum/execution-apis#338 - ethereum/execution-apis#337 Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Update engine API to include some new changes introduced in - ethereum/execution-apis#338 - ethereum/execution-apis#337 Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Signed-off-by: Zhenyang Shi wcgcyx@gmail.com
PR description
Update engine API to include some new changes introduced in
Fixed Issue(s)
fixes #4916
Documentation
doc-change-requiredlabel to this PR ifupdates are required.
Changelog