-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RPC] add SAFE and FINALIZED options for block param (#4902)
* new test file with a block number param that is too long to be a block number * check for block hash parameter length * added unit test for safe & finalized Signed-off-by: Sally MacFarlane <[email protected]>
- Loading branch information
Showing
5 changed files
with
103 additions
and
5 deletions.
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
20 changes: 20 additions & 0 deletions
20
...hyperledger/besu/ethereum/api/jsonrpc/eth/eth_getTransactionCount_invalidBlockNumber.json
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"request": { | ||
"id": 487, | ||
"jsonrpc": "2.0", | ||
"method": "eth_getTransactionCount", | ||
"params": [ | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", | ||
"0xD5C9556Ec8Fef8A240EDdFdd01433Dc6EC08CBCa" | ||
] | ||
}, | ||
"response": { | ||
"jsonrpc": "2.0", | ||
"id": 487, | ||
"error" : { | ||
"code" : -32602, | ||
"message" : "Invalid params" | ||
} | ||
}, | ||
"statusCode": 400 | ||
} |