lighthouse/beacon_node/network/src
GeemoCandama f857811e5f light client optimistic update reprocessing (#3799)
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

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.
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-25 14:23:33 +01:00
..
beacon_processor light client optimistic update reprocessing (#3799) 2023-01-25 14:23:33 +01:00
router Revert "Revert "renames, remove , wrap BlockWrapper enum to make descontruction private"" 2022-12-28 10:31:18 -05: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 finish refactor 2023-01-21 04:48:25 -05: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-25 14:23:33 +01: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 handle parent blob request edge cases correctly. fix data availability boundary check 2022-12-19 11:39:09 -05:00
status.rs enable 4844 at epoch 3 2022-09-18 12:13:03 +02:00