lighthouse-pulse/consensus
Daniel Ramirez Chiquillo 036b797b2c Add finalized to HTTP API responses (#3753)
## Issue Addressed

#3708 

## Proposed Changes
- Add `is_finalized_block` method to `BeaconChain` in `beacon_node/beacon_chain/src/beacon_chain.rs`.
- Add `is_finalized_state` method to `BeaconChain` in `beacon_node/beacon_chain/src/beacon_chain.rs`.
- Add `fork_and_execution_optimistic_and_finalized` in `beacon_node/http_api/src/state_id.rs`.
- Add `ExecutionOptimisticFinalizedForkVersionedResponse` type in `consensus/types/src/fork_versioned_response.rs`.
- Add `execution_optimistic_finalized_fork_versioned_response`function in  `beacon_node/http_api/src/version.rs`.
- Add `ExecutionOptimisticFinalizedResponse` type in `common/eth2/src/types.rs`.
- Add `add_execution_optimistic_finalized` method in  `common/eth2/src/types.rs`.
- Update API response methods to include finalized.
- Remove `execution_optimistic_fork_versioned_response`

Co-authored-by: Michael Sproul <michael@sigmaprime.io>
2023-03-30 06:08:37 +00:00
..
cached_tree_hash Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
fork_choice Fix fork choice error message (#4122) 2023-03-23 07:16:49 +00:00
int_to_bytes Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
merkle_proof Verify execution block hashes during finalized sync (#3794) 2023-01-09 03:11:59 +00:00
proto_array Add debug fork choice api (#4003) 2023-03-29 02:56:37 +00:00
safe_arith Inline safe_arith methods (#3229) 2022-05-31 06:09:12 +00:00
serde_utils Tweaks to reward APIs (#3957) 2023-02-10 06:19:42 +00:00
ssz Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
ssz_derive Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
ssz_types Suggestions for Capella execution_layer (#3983) 2023-02-17 11:58:33 +11:00
state_processing Clean capella (#4019) 2023-03-01 03:19:02 +00:00
swap_or_not_shuffle Verify execution block hashes during finalized sync (#3794) 2023-01-09 03:11:59 +00:00
tree_hash Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
tree_hash_derive Appease Clippy 1.68 and refactor http_api (#4068) 2023-03-13 01:40:03 +00:00
types Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00