mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
Custody backfill sync (#7907)
#7603 #### Custody backfill sync service Similar in many ways to the current backfill service. There may be ways to unify the two services. The difficulty there is that the current backfill service tightly couples blocks and their associated blobs/data columns. Any attempts to unify the two services should be left to a separate PR in my opinion. #### `SyncNeworkContext` `SyncNetworkContext` manages custody sync data columns by range requests separetly from other sync RPC requests. I think this is a nice separation considering that custody backfill is its own service. #### Data column import logic The import logic verifies KZG committments and that the data columns block root matches the block root in the nodes store before importing columns #### New channel to send messages to `SyncManager` Now external services can communicate with the `SyncManager`. In this PR this channel is used to trigger a custody sync. Alternatively we may be able to use the existing `mpsc` channel that the `SyncNetworkContext` uses to communicate with the `SyncManager`. I will spend some time reviewing this. Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com> Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,9 @@ pub const SPAN_PROCESS_RPC_BLOCK: &str = "process_rpc_block";
|
||||
pub const SPAN_PROCESS_RPC_BLOBS: &str = "process_rpc_blobs";
|
||||
pub const SPAN_PROCESS_RPC_CUSTODY_COLUMNS: &str = "process_rpc_custody_columns";
|
||||
pub const SPAN_PROCESS_CHAIN_SEGMENT: &str = "process_chain_segment";
|
||||
pub const SPAN_CUSTODY_BACKFILL_SYNC_BATCH_REQUEST: &str = "custody_backfill_sync_batch_request";
|
||||
pub const SPAN_PROCESS_CHAIN_SEGMENT_BACKFILL: &str = "process_chain_segment_backfill";
|
||||
pub const SPAN_CUSTODY_BACKFILL_SYNC_IMPORT_COLUMNS: &str = "custody_backfill_sync_import_columns";
|
||||
|
||||
/// Fork choice root spans
|
||||
pub const SPAN_RECOMPUTE_HEAD: &str = "recompute_head_at_slot";
|
||||
@@ -73,4 +75,6 @@ pub const LH_BN_ROOT_SPAN_NAMES: &[&str] = &[
|
||||
SPAN_HANDLE_LIGHT_CLIENT_BOOTSTRAP,
|
||||
SPAN_HANDLE_LIGHT_CLIENT_OPTIMISTIC_UPDATE,
|
||||
SPAN_HANDLE_LIGHT_CLIENT_FINALITY_UPDATE,
|
||||
SPAN_CUSTODY_BACKFILL_SYNC_BATCH_REQUEST,
|
||||
SPAN_CUSTODY_BACKFILL_SYNC_IMPORT_COLUMNS,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user