mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Updated consensus types for Gloas 1.7.0-alpha.1 (#8688)
Pulling out consensus type changes from #8677. This PR covers all type changes for spec 1.7.0-alpha.1 (except for `DataColumnSidecar` changes, which is covered in @eserilev's PR #8682) Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com> Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -297,6 +297,15 @@ impl<E: EthSpec> Case for ForkChoiceTest<E> {
|
||||
}
|
||||
|
||||
fn result(&self, _case_index: usize, fork_name: ForkName) -> Result<(), Error> {
|
||||
// TODO(gloas): We have not implemented this change to fork choice/proposer boost yet.
|
||||
// https://github.com/sigp/lighthouse/issues/8689
|
||||
if self.description == "voting_source_beyond_two_epoch"
|
||||
|| self.description == "justified_update_not_realized_finality"
|
||||
|| self.description == "justified_update_always_if_better"
|
||||
{
|
||||
return Err(Error::SkippedKnownFailure);
|
||||
}
|
||||
|
||||
let tester = Tester::new(self, testing_spec::<E>(fork_name))?;
|
||||
|
||||
for step in &self.steps {
|
||||
|
||||
@@ -387,8 +387,16 @@ where
|
||||
T::name().into()
|
||||
}
|
||||
|
||||
fn disabled_forks(&self) -> Vec<ForkName> {
|
||||
// TODO(gloas): Can be removed once we enable Gloas on all tests
|
||||
vec![]
|
||||
}
|
||||
|
||||
fn is_enabled_for_fork(&self, fork_name: ForkName) -> bool {
|
||||
// TODO(gloas): DataColumnSidecar tests are disabled until we update the DataColumnSidecar
|
||||
// type.
|
||||
self.supported_forks.contains(&fork_name)
|
||||
&& !(fork_name == ForkName::Gloas && T::name() == "DataColumnSidecar")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user