mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-18 22:49:34 +00:00
Enable Gloas fork choice compliance
This commit is contained in:
@@ -88,8 +88,6 @@ excluded_paths = [
|
||||
"tests/.*/.*/fast_confirmation",
|
||||
# TODO: fork choice compliance invalid_message tests not implemented yet
|
||||
"tests/minimal/.*/fork_choice_compliance/invalid_message_test/.*",
|
||||
# TODO: fork choice compliance tests are implemented for Fulu only.
|
||||
"tests/minimal/gloas/fork_choice_compliance/.*",
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -1424,6 +1424,7 @@ impl<E: EthSpec> Tester<E> {
|
||||
let justified_balances = fork_choice.fc_store().justified_balances().clone();
|
||||
let actual = fork_choice
|
||||
.proto_array()
|
||||
.core_proto_array()
|
||||
.filtered_block_tree_leaves_and_weights::<E>(
|
||||
&justified.root,
|
||||
current_slot,
|
||||
@@ -1435,7 +1436,7 @@ impl<E: EthSpec> Tester<E> {
|
||||
)
|
||||
.map_err(|e| {
|
||||
Error::InternalError(format!(
|
||||
"filtered_block_tree_leaves_and_weights failed: {e}"
|
||||
"filtered_block_tree_leaves_and_weights failed: {e:?}"
|
||||
))
|
||||
})?;
|
||||
drop(fork_choice);
|
||||
|
||||
@@ -779,7 +779,7 @@ impl<E: EthSpec + TypeName> Handler for ForkChoiceComplianceHandler<E> {
|
||||
}
|
||||
|
||||
fn is_enabled_for_fork(&self, fork_name: ForkName) -> bool {
|
||||
cfg!(feature = "fake_crypto") && fork_name == ForkName::Fulu
|
||||
cfg!(feature = "fake_crypto") && fork_name.fulu_enabled()
|
||||
}
|
||||
|
||||
fn disabled_forks(&self) -> Vec<ForkName> {
|
||||
|
||||
Reference in New Issue
Block a user