mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 21:27:12 +00:00
Add da router, and initial logic
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user