Skip to content

Commit

Permalink
Rename NotRequired to NotStarted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Oct 17, 2024
1 parent 9efa768 commit 2710d3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3193,7 +3193,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
Some((availability_processing_status, data_columns_to_publish))
})
}
DataColumnReconstructionResult::NotRequired(reason)
DataColumnReconstructionResult::NotStarted(reason)
| DataColumnReconstructionResult::RecoveredColumnsNotImported(reason) => {
// We use metric here because logging this would be *very* noisy.
metrics::inc_counter_vec(
Expand Down
4 changes: 2 additions & 2 deletions beacon_node/beacon_chain/src/data_availability_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub type AvailabilityAndReconstructedColumns<E> = (Availability<E>, DataColumnSi
#[derive(Debug)]
pub enum DataColumnReconstructionResult<E: EthSpec> {
Success(AvailabilityAndReconstructedColumns<E>),
NotRequired(&'static str),
NotStarted(&'static str),
RecoveredColumnsNotImported(&'static str),
}

Expand Down Expand Up @@ -536,7 +536,7 @@ impl<T: BeaconChainTypes> DataAvailabilityChecker<T> {
{
ReconstructColumnsDecision::Yes(pending_components) => pending_components,
ReconstructColumnsDecision::No(reason) => {
return Ok(DataColumnReconstructionResult::NotRequired(reason));
return Ok(DataColumnReconstructionResult::NotStarted(reason));
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl<T: BeaconChainTypes> AttestationService<T> {
// duration of the subscription.
let min_ttl = self
.beacon_chain
.slot_clock
i .slot_clock
.duration_to_slot(exact_subnet.slot + 1)
.map(|duration| std::time::Instant::now() + duration);
Some(SubnetDiscovery {
Expand Down

0 comments on commit 2710d3c

Please sign in to comment.