lighthouse/beacon_node/network/src
GeemoCandama a7351c00c0 light client optimistic update reprocessing (#3799)
## Issue Addressed
Currently there is a race between receiving blocks and receiving light client optimistic updates (in unstable), which results in processing errors. This is a continuation of PR #3693 and seeks to progress on issue #3651

## Proposed Changes

Add the parent_root to ReprocessQueueMessage::BlockImported so we can remove blocks from queue when a block arrives that has the same parent root. We use the parent root as opposed to the block_root because the LightClientOptimisticUpdate does not contain the block_root.

If light_client_optimistic_update.attested_header.canonical_root() != head_block.message().parent_root() then we queue the update. Otherwise we process immediately.
## Additional Info
michaelsproul came up with this idea.
The code was heavily based off of the attestation reprocessing.
I have not properly tested this to see if it works as intended.
2023-01-24 22:17:50 +00:00
..
beacon_processor light client optimistic update reprocessing (#3799) 2023-01-24 22:17:50 +00:00
router Adding light_client gossip topics (#3693) 2022-12-13 06:24:51 +00:00
service Filter non global ips from discovery (#3023) 2022-03-02 03:14:27 +00:00
subnet_service Improve validator monitor experience for high validator counts (#3728) 2023-01-09 08:18:55 +00:00
sync remove commas from comma-separated kv pairs (#3737) 2022-11-25 07:57:10 +00:00
error.rs Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00
lib.rs Separate committee subscriptions queue (#3508) 2022-08-30 05:47:31 +00:00
metrics.rs light client optimistic update reprocessing (#3799) 2023-01-24 22:17:50 +00:00
nat.rs rust 1.53.0 updates (#2411) 2021-06-18 05:58:01 +00:00
persisted_dht.rs Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00
service.rs Adding light_client gossip topics (#3693) 2022-12-13 06:24:51 +00:00
status.rs Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00