-
Notifications
You must be signed in to change notification settings - Fork 871
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
[4844] [Hive] Fix fcuV3 parameter return #5940
[4844] [Hive] Fix fcuV3 parameter return #5940
Conversation
Signed-off-by: Gabriel-Trintinalia <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
|
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.
LGTM
if (fcuParameter.getHeadBlockHash() == null) { | ||
return ValidationResult.invalid(RpcErrorType.INVALID_PARAMS, "Missing head block hash"); | ||
} else if (fcuParameter.getSafeBlockHash() == null) { | ||
return ValidationResult.invalid(RpcErrorType.INVALID_PARAMS, "Missing safe block hash"); | ||
} else if (fcuParameter.getFinalizedBlockHash() == null) { | ||
return ValidationResult.invalid(RpcErrorType.INVALID_PARAMS, "Missing finalized block hash"); | ||
} | ||
if (maybePayloadAttributes.isPresent()) { |
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.
this is the parameter checking you mean that will potentially conflict with the larger refactor?
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 think fine to fix it like this in the short-term to clear the noise for the hive 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.
We would not necessarily have to validate this if the plans are to use strict JSON validation
Signed-off-by: Gabriel-Trintinalia <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
Signed-off-by: Gabriel-Trintinalia <[email protected]>
PR description
Fix some hive tests