prysm-pulse/beacon-chain/rpc
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
..
apimiddleware fix(beacon-chain/rpc): blob_sidecar event stream handler (#12999) 2023-10-13 13:51:16 +00:00
core Return RpcError from core service's SubmitSyncMessage (#12974) 2023-09-30 14:19:09 +00:00
eth Add state not found test case (#13034) 2023-10-13 17:21:38 +00:00
lookup Handle hex in Blocker, Stater and optimistic mode checker (#12979) 2023-10-03 05:52:29 +00:00
prysm integrate validator count endpoint in validator client (#12912) 2023-10-11 15:23:02 +02:00
testutil Add support for validator count endpoint (#12752) 2023-08-24 23:11:41 +02:00
BUILD.bazel migrating get blob from eip4844 and deneb-integration (#12603) 2023-08-31 08:41:57 -05:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
service_test.go Block rewards API endpoint (#12020) 2023-03-28 18:44:41 +02:00
service.go HTTP Beacon APIs: 3 state endpoints (#13001) 2023-10-12 17:53:33 +00:00