prysm-pulse/beacon-chain/rpc/eth/shared
hyunchel cc2b4db582
Add state not found test case (#13034)
* beacon-chain:rpc/eth/shared: prevent mutiple error messages

This commit prevents the error writing function from writing multiple
JSON objects. An error message with more than one JSON object will not
unmarshal into the default error response.

* beacon-chain/rpc/eth/beacon: add a test case for missing state

This commit adds a test on beacon states finality checkpoints endpoint
to cover a case when state is not found.

* beacon-chain/rpc/eth: update error response to meet the spec

This commit updates error message on beacon states finality
checkpoints endpoint to ensure that the response complies to
Ethereum Beacon-API specification.

* beacon-chain/rpc/eth/shared: add build dependency

* beacon-chain/rpc/eth/shared: update test on state not found

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-10-13 17:21:38 +00:00
..
testing Deneb: Produce Block V3 - adding consensus block value (#12948) 2023-10-10 15:12:20 +00:00
BUILD.bazel Add state not found test case (#13034) 2023-10-13 17:21:38 +00:00
errors_test.go Add state not found test case (#13034) 2023-10-13 17:21:38 +00:00
errors.go Add state not found test case (#13034) 2023-10-13 17:21:38 +00:00
request.go Deneb produce blockv3 (#12708) 2023-09-01 12:51:27 +02:00
structs_blocks_conversions.go cleanup on api types (#12961) 2023-09-27 09:26:32 -05:00
structs_blocks.go HTTP Beacon API: /eth/v1/beacon/headers (#12817) 2023-09-15 12:05:35 +02:00
structs.go HTTP API: /eth/v1/beacon/pool/bls_to_execution_changes (#12963) 2023-10-11 14:08:06 +00:00