Add da router, and initial logic

This commit is contained in:
Eitan Seri-Levi
2026-01-27 19:32:30 -08:00
parent 7f065009a7
commit d9c21f5e33
30 changed files with 3405 additions and 208 deletions

View File

@@ -7,7 +7,7 @@ use std::{
sync::atomic::{AtomicU64, Ordering},
};
use tracing::{debug, warn};
use types::{ChainSpec, ColumnIndex, Epoch, EthSpec, Slot};
use types::{ChainSpec, ColumnIndex, Epoch, EthSpec, SignedExecutionPayloadEnvelope, Slot};
/// A delay before making the CGC change effective to the data availability checker.
pub const CUSTODY_CHANGE_DA_EFFECTIVE_DELAY_SECONDS: u64 = 30;
@@ -527,6 +527,13 @@ impl<E: EthSpec> CustodyContext<E> {
.write()
.reset_validator_custody_requirements(effective_epoch);
}
pub fn data_columns_required_for_payload(
&self,
_payload: &SignedExecutionPayloadEnvelope<E>,
) -> bool {
todo!()
}
}
/// Indicates that the custody group count (CGC) has increased.