lighthouse/beacon_node/http_api/src
Eitan Seri-Levi e4d4e439cb
Add Capella & Deneb light client support (#4946)
* rebase and add comment

* conditional test

* test

* optimistic chould be working now

* finality should be working now

* try again

* try again

* clippy fix

* add lc bootstrap beacon api

* add lc optimistic/finality update to events

* fmt

* That error isn't occuring on my computer but I think this should fix it

* Merge branch 'unstable' into light_client_beacon_api_1

# Conflicts:
#	beacon_node/beacon_chain/src/events.rs
#	beacon_node/http_api/src/lib.rs
#	beacon_node/http_api/src/test_utils.rs
#	beacon_node/http_api/tests/main.rs
#	beacon_node/lighthouse_network/src/rpc/codec/ssz_snappy.rs
#	beacon_node/lighthouse_network/src/rpc/methods.rs
#	beacon_node/lighthouse_network/src/service/api_types.rs
#	beacon_node/network/src/beacon_processor/worker/rpc_methods.rs
#	beacon_node/tests/test.rs
#	common/eth2/src/types.rs
#	lighthouse/src/main.rs

* Add missing test file

* Update light client types to comply with Altair light client spec.

* Fix test compilation

* Merge branch 'unstable' into light_client_beacon_api_1

* Support deserializing light client structures for the Bellatrix fork

* Move `get_light_client_bootstrap` logic to `BeaconChain`. `LightClientBootstrap` API to return `ForkVersionedResponse`.

* Misc fixes.
- log cleanup
- move http_api config mutation to `config::get_config` for consistency
- fix light client API responses

* Add light client bootstrap API test and fix existing ones.

* Merge branch 'unstable' into light_client_beacon_api_1

* Fix test for `light-client-server` http api config.

* Appease clippy

* Add Altair light client SSZ tests

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into light_client_beacon_api_1

* updates to light client header

* light client header from signed beacon block

* using options

* implement helper functions

* placeholder conversion from vec hash256 to exec branch

* add deneb

* using fixed vector

* remove unwraps

* by epoch

* compute merkle proof

* merkle proof

* update comments

* resolve merge conflicts

* linting

* Merge branch 'unstable' into light-client-ssz-tests

# Conflicts:
#	beacon_node/beacon_chain/src/beacon_chain.rs
#	consensus/types/src/light_client_bootstrap.rs
#	consensus/types/src/light_client_header.rs

* superstruct attempt

* superstruct changes

* lint

* altair

* update

* update

* changes to light_client_optimistic_ and finality

* merge unstable

* refactor

* resolved merge conflicts

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types

* block_to_light_client_header fork aware

* fmt

* comment fix

* comment fix

* include merge fork, update deserialize_by_fork, refactor

* fmt

* pass by ref to prevent clone

* rename merkle proof fn

* add FIXME

* LightClientHeader TestRandom

* fix comments

* fork version deserialize

* merge unstable

* move fn arguments, fork name calc

* use task executor

* remove unneeded fns

* remove dead code

* add manual ssz decoding/encoding and add ssz_tests_by_fork macro

* merge deneb types with tests

* merge ssz tests, revert code deletion, cleanup

* move chainspec

* update ssz tests

* fmt

* light client ssz tests

* change to superstruct

* changes from feedback

* linting

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types

* test fix

* cleanup

* Remove unused `derive`.

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into capella_deneb_light_client_types

* beta compiler fix

* merge
2024-03-25 11:01:56 +00:00
..
attestation_performance.rs Fix Rust beta compiler errors (1.77) (#5180) 2024-02-05 17:54:11 +00:00
attester_duties.rs attester_duties: remove unnecessary case (#4614) 2023-08-17 02:37:30 +00:00
block_id.rs Deneb pr updates 2 (#4851) 2023-10-17 09:53:46 +11:00
block_packing_efficiency.rs Fix Rust beta compiler errors 1.78.0-beta.1 (#5439) 2024-03-20 05:17:02 +00:00
block_rewards.rs Update dependencies to get rid of the yanked deps (#4994) 2023-12-15 18:31:59 +11:00
build_block_contents.rs Sidecar inclusion proof (#4900) 2023-12-05 11:19:59 -05:00
builder_states.rs Implement expected withdrawals endpoint (#4390) 2023-08-24 05:54:36 +00:00
database.rs Improvements to Deneb store upon review (#4693) 2023-09-25 14:21:54 -04:00
lib.rs Add Capella & Deneb light client support (#4946) 2024-03-25 11:01:56 +00:00
metrics.rs More deneb cleanup (#4640) 2023-08-20 21:17:17 -04:00
produce_block.rs add content-type octet stream helper fn (#5062) 2024-01-15 16:23:39 +11:00
proposer_duties.rs Add missed blocks to monitored validators (#4731) 2023-11-09 15:05:14 +11:00
publish_attestations.rs Handle unknown head during attestation publishing (#5010) 2024-02-15 12:24:47 +00:00
publish_blocks.rs chore: reduce scope of commitment (#5426) 2024-03-22 18:16:52 +00:00
standard_block_rewards.rs Address Clippy 1.73 lints on Deneb branch (#4810) 2023-10-06 12:23:57 +05:30
state_id.rs Remove double-locking deadlock from HTTP API (#4687) 2023-08-31 11:18:00 +00:00
sync_committee_rewards.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
sync_committees.rs Verify whether validators really are unknown during sync committee duty API request (#5174) 2024-03-23 00:01:11 +00:00
task_spawner.rs Handle unknown head during attestation publishing (#5010) 2024-02-15 12:24:47 +00:00
test_utils.rs Handle unknown head during attestation publishing (#5010) 2024-02-15 12:24:47 +00:00
ui.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
validator_inclusion.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
validator.rs Block v3 endpoint (#4629) 2023-11-03 00:12:18 +00:00
validators.rs Implement POST validators/validator_balances APIs (#4872) 2023-12-08 12:09:36 +11:00
version.rs add content-type octet stream helper fn (#5062) 2024-01-15 16:23:39 +11:00