lighthouse/beacon_node/eth1/src
Paul Hauner 7afbaa807e Return eth1-related data via the API (#1797)
## Issue Addressed

- Related to #1691

## Proposed Changes

Adds the following API endpoints:

- `GET lighthouse/eth1/syncing`: status about how synced we are with Eth1.
- `GET lighthouse/eth1/block_cache`: all locally cached eth1 blocks.
- `GET lighthouse/eth1/deposit_cache`: all locally cached eth1 deposits.

Additionally:

- Moves some types from the `beacon_node/eth1` to the `common/eth2` crate, so they can be used in the API without duplication.
- Allow `update_deposit_cache` and `update_block_cache` to take an optional head block number to avoid duplicate requests.

## Additional Info

TBC
2020-11-02 00:37:30 +00:00
..
block_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_cache.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
deposit_log.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
http.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
inner.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00
lib.rs Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
metrics.rs Add more eth1 metrics (#728) 2019-12-17 10:20:27 +11:00
service.rs Return eth1-related data via the API (#1797) 2020-11-02 00:37:30 +00:00