lighthouse/beacon_node
Paul Hauner bcfde6e7df Indicate that invalid blocks are optimistic (#3383)
## Issue Addressed

NA

## Proposed Changes

This PR will make Lighthouse return blocks with invalid payloads via the API with `execution_optimistic = true`. This seems a bit awkward, however I think it's better than returning a 404 or some other error.

Let's consider the case where the only possible head is invalid (#3370 deals with this). In such a scenario all of the duties endpoints will start failing because the head is invalid. I think it would be better if the duties endpoints continue to work, because it's likely that even though the head is invalid the duties are still based upon valid blocks and we want the VC to have them cached. There's no risk to the VC here because we won't actually produce an attestation pointing to an invalid head.

Ultimately, I don't think it's particularly important for us to distinguish between optimistic and invalid blocks on the API. Neither should be trusted and the only *real* reason that we track this is so we can try and fork around the invalid blocks.


## Additional Info

- ~~Blocked on #3370~~
2022-07-30 05:08:57 +00:00
..
beacon_chain Indicate that invalid blocks are optimistic (#3383) 2022-07-30 05:08:57 +00:00
builder_client Builder Specs v0.2.0 (#3134) 2022-07-30 00:22:37 +00:00
client Initial Commit of Retrospective OTB Verification (#3372) 2022-07-30 00:22:38 +00:00
eth1 Fix Block Cache Range Math for Faster Syncing (#3358) 2022-07-26 02:17:21 +00:00
execution_layer Initial Commit of Retrospective OTB Verification (#3372) 2022-07-30 00:22:38 +00:00
genesis Unify execution layer endpoints (#3214) 2022-06-29 09:07:09 +00:00
http_api Indicate that invalid blocks are optimistic (#3383) 2022-07-30 05:08:57 +00:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Return ResourceUnavailable if we are unable to reconstruct execution payloads (#3365) 2022-07-27 03:20:00 +00:00
network Fix penalties in sync methods (#3384) 2022-07-30 00:22:39 +00:00
operation_pool Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
src Enable count-unrealized by default (#3389) 2022-07-30 00:22:41 +00:00
store Initial Commit of Retrospective OTB Verification (#3372) 2022-07-30 00:22:38 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
Cargo.toml v2.4.0 (#3360) 2022-07-21 22:02:36 +00:00