-
Notifications
You must be signed in to change notification settings - Fork 839
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
5098 branch 22 update more invalid params #7472
Merged
macfarla
merged 160 commits into
hyperledger:main
from
Matilda-Clerke:5098-branch-22-update-more-invalid-params
Aug 19, 2024
Merged
Changes from all commits
Commits
Show all changes
160 commits
Select commit
Hold shift + click to select a range
e41cf31
5098: Add RpcErrorTypes
Matilda-Clerke 147d580
5098: Modify InvalidJsonRpcParameters and InvalidJsonRpcRequestExcept…
Matilda-Clerke 8da4815
5098: Modify InvalidJsonRpcParameters and InvalidJsonRpcRequestExcept…
Matilda-Clerke 8ca34d7
5098: Add JsonRpcParameterException for later use
Matilda-Clerke 5b5631a
5098: Update locations for RpcErrorType.INVALID_ACCOUNTS_PARAMS
Matilda-Clerke 950117b
5098: Address review comments, apply spotless
Matilda-Clerke 0004fa2
Merge branch 'refs/heads/5098-branch-1-add-rpc-error-types' into 5098…
Matilda-Clerke 7fc2c2b
5098: Update with changes from branch 1
Matilda-Clerke b70da06
Merge branch 'main' into 5098-branch-1-add-rpc-error-types
Matilda-Clerke a54a5aa
5098: Update code to use RpcErrorType.INVALID_ADDRESS_HASH_PARAMS
Matilda-Clerke 5acb2d7
5098: apply spotless
Matilda-Clerke aba28d4
Merge branch 'refs/heads/5098-branch-2-update-invalid-accounts-params…
Matilda-Clerke afb8860
5098: apply spotless
Matilda-Clerke 0d4a9b3
5098: Update plugin-api gradle hash
Matilda-Clerke ad7d7b3
Merge branch 'refs/heads/5098-branch-1-add-rpc-error-types' into 5098…
Matilda-Clerke 8aac343
Merge branch 'refs/heads/5098-branch-2-update-invalid-accounts-params…
Matilda-Clerke 9ba006b
5098: Add comment on INVALID_PARAMS_ERROR_CODE
Matilda-Clerke 531c530
5098: Apply spotless on latest changes
Matilda-Clerke e946b06
Merge branch 'main' into 5098-branch-1-add-rpc-error-types
Matilda-Clerke b0dc1a8
Merge branch 'refs/heads/5098-branch-1-add-rpc-error-types' into 5098…
Matilda-Clerke cc6bdf3
Merge branch 'refs/heads/5098-branch-2-update-invalid-accounts-params…
Matilda-Clerke 983ac77
Merge branch 'main' into 5098-branch-2-update-invalid-accounts-params
Matilda-Clerke 6fc67ee
5098: Update code to use RpcErrorType.INVALID_ADDRESS_PARAMS
Matilda-Clerke 728ab2c
5098: Fix broken unit test
Matilda-Clerke 6480308
Merge remote-tracking branch 'origin/5098-branch-2-update-invalid-acc…
Matilda-Clerke 8b72fbc
Merge branch 'refs/heads/5098-branch-2-update-invalid-accounts-params…
Matilda-Clerke a60966c
Merge branch 'refs/heads/5098-branch-3-update-invalid-address-hash-pa…
Matilda-Clerke 0fb6919
5098: Fix broken unit test
Matilda-Clerke e967e32
Merge branch 'refs/heads/5098-branch-2-update-invalid-accounts-params…
Matilda-Clerke 32db32b
Merge branch 'refs/heads/5098-branch-3-update-invalid-address-hash-pa…
Matilda-Clerke 9f53648
5098: Update with usage of RpcErrorType.INVALID_AUTH_PARAMS
Matilda-Clerke 3cfe6dd
5098: Update with usage of RpcErrorType.INVALID_BLOB_COUNT
Matilda-Clerke 7414843
5098: Update with usage of RpcErrorType.INVALID_BLOB_GAS_USED_PARAMS
Matilda-Clerke c3e8d22
5098: Update with usage of RpcErrorType.INVALID_BLOCK_PARAMS
Matilda-Clerke 73c45b0
Merge branch 'main' into 5098-branch-3-update-invalid-address-hash-pa…
Matilda-Clerke 75dff8f
5098: Update with usage of RpcErrorType.INVALID_BLOCK_PARAMS
Matilda-Clerke dd6c10b
5098: Update with usage of RpcErrorType.INVALID_BLOCK_PARAMS
Matilda-Clerke 7d41fac
5098: Update with usage of RpcErrorType.INVALID_BLOCK_COUNT_PARAMS
Matilda-Clerke e316045
5098: Fix broken integration test
Matilda-Clerke d7a7dba
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 670c6fa
Merge branch 'main' into 5098-branch-3-update-invalid-address-hash-pa…
Matilda-Clerke 724dd14
Merge branch 'refs/heads/5098-branch-3-update-invalid-address-hash-pa…
Matilda-Clerke ab04552
Merge branch 'refs/heads/5098-branch-4-update-invalid-address-params'…
Matilda-Clerke 8e1a740
Merge branch 'refs/heads/5098-branch-5-update-invalid-auth-params' in…
Matilda-Clerke 71cad41
Merge branch 'refs/heads/5098-branch-6-update-invalid-blob-count' int…
Matilda-Clerke 25c68b8
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 167a416
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 4fef179
Merge branch 'main' into 5098-branch-4-update-invalid-address-params
macfarla bd6b7d3
5098: Add index to exception messages
Matilda-Clerke eda22ac
5098: apoply spotless
Matilda-Clerke 6ce053b
5098: Update BaseJsonRpcProcessor to utilise RpcErrorType from Invali…
Matilda-Clerke 943426b
Merge branch 'refs/heads/5098-branch-4-update-invalid-address-params'…
Matilda-Clerke d441737
5098: Include parameter index in INVALID_AUTH_PARAMS
Matilda-Clerke 11b4839
Merge branch 'refs/heads/5098-branch-5-update-invalid-auth-params' in…
Matilda-Clerke 3459365
Merge branch 'refs/heads/5098-branch-6-update-invalid-blob-count' int…
Matilda-Clerke f46c23a
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 93594a9
5098: Include parameter index in INVALID_BLOCK_PARAMS
Matilda-Clerke d8f6f3e
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke f2fb791
5098: Include parameter index in INVALID_BLOCK_COUNT_PARAMS
Matilda-Clerke 0b3d153
Merge branch 'main' into 5098-branch-4-update-invalid-address-params
Matilda-Clerke 6e106de
Merge branch 'main' into 5098-branch-4-update-invalid-address-params
Matilda-Clerke 625b75f
Merge branch 'main' into 5098-branch-4-update-invalid-address-params
Matilda-Clerke 373d5c9
Merge branch 'refs/heads/5098-branch-4-update-invalid-address-params'…
Matilda-Clerke 876e74d
Merge branch 'refs/heads/5098-branch-5-update-invalid-auth-params' in…
Matilda-Clerke 9e2ff60
Merge branch 'refs/heads/5098-branch-6-update-invalid-blob-count' int…
Matilda-Clerke 85eda97
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 68b3d29
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 0c06cac
Merge branch 'main' into 5098-branch-5-update-invalid-auth-params
Matilda-Clerke 005640e
5098: Fix broken integration test
Matilda-Clerke 89a9fb4
Merge branch 'refs/heads/5098-branch-5-update-invalid-auth-params' in…
Matilda-Clerke 42cce8f
Merge branch 'refs/heads/5098-branch-6-update-invalid-blob-count' int…
Matilda-Clerke a0e0e43
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 94c319d
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 792f328
5098: Rename INVALID_AUTH_PARAMS to INVALID_PROPOSAL_PARAMS
Matilda-Clerke e840fea
Merge branch 'refs/heads/5098-branch-5-update-invalid-auth-params' in…
Matilda-Clerke e4c663a
Merge branch 'refs/heads/5098-branch-6-update-invalid-blob-count' int…
Matilda-Clerke 5d7e9c9
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 355a02a
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke ff2db15
5098: apply spotless
Matilda-Clerke 07b758f
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 74616be
5098: Update INVALID_BLOCK_HASH_PARAMS locations
Matilda-Clerke def78c3
Merge branch 'main' into 5098-branch-11-update-invalid-block-hash-params
Matilda-Clerke 437c5a2
Merge branch 'main' into 5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke 2b68b15
Merge branch 'refs/heads/5098-branch-7-update-invalid-blob-gas-used-p…
Matilda-Clerke bd85d0e
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke e393c3b
Merge branch 'refs/heads/5098-branch-9-update-invalid-block-count-par…
Matilda-Clerke e2d2f4c
5098: Fix broken unit test
Matilda-Clerke 98b48b0
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke f3fc8bd
Merge branch 'refs/heads/5098-branch-9-update-invalid-block-count-par…
Matilda-Clerke 7378dcf
5098: apply spotless
Matilda-Clerke ae1a45f
5098: Update RpcErrorType.INVALID_BLOCK_INDEX
Matilda-Clerke c562abf
Merge branch 'main' into 5098-branch-8-update-invalid-block-params
Matilda-Clerke f5bba2f
5098: Update RpcErrorType.INVALID_BLOCK_NUMBER
Matilda-Clerke 1135c0f
5098: apply spotless
Matilda-Clerke cce32cc
5098: Fix broken tests
Matilda-Clerke 16c7d9d
Merge remote-tracking branch 'origin/5098-branch-8-update-invalid-blo…
Matilda-Clerke 9758f31
Merge branch 'refs/heads/5098-branch-8-update-invalid-block-params' i…
Matilda-Clerke 928a2fa
Merge branch 'refs/heads/5098-branch-9-update-invalid-block-count-par…
Matilda-Clerke d4ea353
Merge branch 'refs/heads/5098-branch-11-update-invalid-block-hash-par…
Matilda-Clerke 7c14379
Merge branch 'main' into 5098-branch-9-update-invalid-block-count-params
Matilda-Clerke 539c8cc
Merge branch 'refs/heads/5098-branch-9-update-invalid-block-count-par…
Matilda-Clerke bfda0c0
Merge branch 'refs/heads/5098-branch-11-update-invalid-block-hash-par…
Matilda-Clerke bd3f5e9
5098: Update RpcErrorType.INVALID_CALL_PARAMS
Matilda-Clerke 2cb1cd4
Merge branch 'main' into 5098-branch-11-update-invalid-block-hash-params
macfarla 1f7a455
5098: Update RpcErrorType.INVALID_CONSOLIDATION_REQUEST_PARAMS
Matilda-Clerke bfe75b3
5098: Update RpcErrorType.INVALID_CREATE_PRIVACY_GROUP_PARAMS
Matilda-Clerke bc1e563
5098: Fix broken test
Matilda-Clerke 4c6654a
Merge remote-tracking branch 'origin/5098-branch-11-update-invalid-bl…
Matilda-Clerke bb7e492
Merge branch 'refs/heads/5098-branch-11-update-invalid-block-hash-par…
Matilda-Clerke a50503c
Merge branch 'refs/heads/5098-branch-12-update-invalid-block-index-an…
Matilda-Clerke 34a8718
5098: Update RpcErrorType.INVALID_DATA_PARAMS
Matilda-Clerke 3642beb
5098: Update RpcErrorType.INVALID_DEPOSIT_REQUEST_PARAMS
Matilda-Clerke 3cf1d8c
5098: Update RpcErrorType.INVALID_ENGINE_EXCHANGE_TRANSITION_CONFIGUR…
Matilda-Clerke baf9ac0
5098: Update RpcErrorType.INVALID_ENGINE_FORKCHOICE_UPDATED_PARAMS
Matilda-Clerke 07664dc
5098: Update RpcErrorType.INVALID_ENGINE_PAYLOAD_ATTRIBUTES_PARAMS
Matilda-Clerke ebe03d7
5098: Update RpcErrorType.INVALID_ENGINE_PAYLOAD_PARAMS
Matilda-Clerke 7e873e7
5098: Update RpcErrorType.INVALID_ENGINE_PREPARE_PAYLOAD_PARAMS
Matilda-Clerke 3d6824e
5098: Apply spotless
Matilda-Clerke 20b5a08
Merge branch 'main' into 5098-branch-15-update-remaining-invalid-engi…
Matilda-Clerke a70a150
5098: Update RpcErrorType.INVALID_ENODE_PARAMS
Matilda-Clerke 2db0f4b
5098: Update RpcErrorType.INVALID_EXCESS_BLOB_GAS_PARAMS
Matilda-Clerke d15a65e
5098: Apply spotless
Matilda-Clerke 36a0819
5098: Update RpcErrorType.INVALID_EXTRA_DATA_PARAMS
Matilda-Clerke 509c15e
5098: Update RpcErrorType.INVALID_FILTER_PARAMS
Matilda-Clerke 086a1b9
5098: Apply spotless
Matilda-Clerke a6efed6
5098: Fix broken tests
Matilda-Clerke 597670e
5098: Update several RpcErrorTypes
Matilda-Clerke fd16783
5098: Apply spotless
Matilda-Clerke 9f4c7cf
5098: Hopefully fix broken integration test
Matilda-Clerke d2ed77d
5098: Hopefully fix broken integration test
Matilda-Clerke 667b03a
Merge branch 'main' into 5098-branch-16-update-invalid-enode-and-exce…
Matilda-Clerke 7f04e66
Merge branch 'main' into 5098-branch-16-update-invalid-enode-and-exce…
Matilda-Clerke eca3323
5098: Update several more RpcErrorTypes
Matilda-Clerke df64162
5098: Apply spotless
Matilda-Clerke e87ebe6
Merge branch 'main' into 5098-branch-16-update-invalid-enode-and-exce…
Matilda-Clerke ae5b11f
Merge branch 'refs/heads/5098-branch-16-update-invalid-enode-and-exce…
Matilda-Clerke 70218ef
Merge branch 'refs/heads/5098-branch-17-update-extra-data-and-filter-…
Matilda-Clerke 8da7f70
Merge branch 'refs/heads/5098-branch-18-update-more-invalid-params' i…
Matilda-Clerke c53e5be
5098: Update RpcErrorType.INVALID_PARAM_COUNT
Matilda-Clerke a7e8896
5098: Update RpcErrorType.INVALID_PAYLOAD_ID_PARAMS
Matilda-Clerke feadf68
5098: Update RpcErrorType.INVALID_PENDING_TRANSACTIONS_PARAMS
Matilda-Clerke e007317
5098: Update RpcErrorType.INVAlID_PLUGIN_NAME_PARAMS
Matilda-Clerke 4a30816
5098: Apply spotless
Matilda-Clerke 74da26b
5098: Fix broken tests
Matilda-Clerke 47d5a4d
5098: Update RpcErrorTypes
Matilda-Clerke 870ecda
5098: Fix broken tests
Matilda-Clerke c124f3b
Merge branch 'main' into 5098-branch-21-update-more-invalid-params
Matilda-Clerke afc9baa
5098: Update several RpcErrorTypes
Matilda-Clerke 71c9523
5098: Apply spotless
Matilda-Clerke c7c6c51
Merge branch 'refs/heads/5098-branch-21-update-more-invalid-params' i…
Matilda-Clerke 31fbb3e
5098: Fix broken test
Matilda-Clerke 32567cc
5098: Update remaining RpcErrorTypes
Matilda-Clerke b7fb9f4
5098: Apply spotless
Matilda-Clerke b80a53c
Merge branch 'main' into 5098-branch-22-update-more-invalid-params
Matilda-Clerke 7096a3b
5098: Update failing tests
Matilda-Clerke c099a5b
5098: Fix failing tests
Matilda-Clerke 67f3d0f
Merge branch 'main' into 5098-branch-22-update-more-invalid-params
Matilda-Clerke 0bb0e6c
5098: Fix failing tests
Matilda-Clerke a3407f6
Merge remote-tracking branch 'origin/5098-branch-22-update-more-inval…
Matilda-Clerke 4e606d5
5098: Fix failing tests
Matilda-Clerke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -55,10 +55,17 @@ public String getName() { | |||||
|
||||||
@Override | ||||||
protected TraceOptions getTraceOptions(final JsonRpcRequestContext requestContext) { | ||||||
return requestContext | ||||||
.getOptionalParameter(2, TransactionTraceParams.class) | ||||||
.map(TransactionTraceParams::traceOptions) | ||||||
.orElse(TraceOptions.DEFAULT); | ||||||
try { | ||||||
return requestContext | ||||||
.getOptionalParameter(2, TransactionTraceParams.class) | ||||||
.map(TransactionTraceParams::traceOptions) | ||||||
.orElse(TraceOptions.DEFAULT); | ||||||
} catch (Exception e) { // TODO:replace with JsonRpcParameter.JsonRpcParameterException | ||||||
throw new InvalidJsonRpcParameters( | ||||||
"Invalid transaction trace parameters (index 2)", | ||||||
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.
Suggested change
|
||||||
RpcErrorType.INVALID_TRANSACTION_TRACE_PARAMS, | ||||||
e); | ||||||
} | ||||||
} | ||||||
|
||||||
@Override | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.