mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
got interop working~
This commit is contained in:
@@ -135,7 +135,7 @@ pub async fn publish_inclusion_lists<T: BeaconChainTypes>(
|
||||
request_index = index,
|
||||
validator_index,
|
||||
il_slot = ?slot,
|
||||
"Failure verifying attestation for gossip"
|
||||
"Failure verifying inclusion list for gossip"
|
||||
);
|
||||
failures.push(Failure::new(index, format!("{e:?}")));
|
||||
} else {
|
||||
|
||||
@@ -58,7 +58,7 @@ async fn state_by_root_pruned_from_fork_choice() {
|
||||
type E = MinimalEthSpec;
|
||||
|
||||
let validator_count = 24;
|
||||
let spec = ForkName::latest().make_genesis_spec(E::default_spec());
|
||||
let spec = ForkName::Eip7805.make_genesis_spec(E::default_spec());
|
||||
|
||||
let tester = InteractiveTester::<E>::new_with_initializer_and_mutator(
|
||||
Some(spec.clone()),
|
||||
@@ -396,7 +396,7 @@ pub async fn proposer_boost_re_org_test(
|
||||
assert!(head_slot > 0);
|
||||
|
||||
// Test using the latest fork so that we simulate conditions as similar to mainnet as possible.
|
||||
let mut spec = ForkName::latest().make_genesis_spec(E::default_spec());
|
||||
let mut spec = ForkName::Eip7805.make_genesis_spec(E::default_spec());
|
||||
spec.terminal_total_difficulty = Uint256::from(1);
|
||||
|
||||
// Ensure there are enough validators to have `attesters_per_slot`.
|
||||
|
||||
@@ -13,7 +13,7 @@ type E = MinimalEthSpec;
|
||||
/// Create a new test environment that is post-merge with `chain_depth` blocks.
|
||||
async fn post_merge_tester(chain_depth: u64, validator_count: u64) -> InteractiveTester<E> {
|
||||
// Test using latest fork so that we simulate conditions as similar to mainnet as possible.
|
||||
let mut spec = ForkName::latest().make_genesis_spec(E::default_spec());
|
||||
let mut spec = ForkName::Eip7805.make_genesis_spec(E::default_spec());
|
||||
spec.terminal_total_difficulty = Uint256::from(1);
|
||||
|
||||
let tester = InteractiveTester::<E>::new(Some(spec), validator_count as usize).await;
|
||||
|
||||
@@ -2837,6 +2837,7 @@ impl ApiTester {
|
||||
|
||||
pub async fn test_post_validator_duties_inclusion_list(self) -> Self {
|
||||
let current_epoch = self.chain.epoch().unwrap();
|
||||
let state = self.harness.get_current_state();
|
||||
let slot = self.chain.slot().unwrap();
|
||||
self.harness.extend_to_slot(slot).await;
|
||||
for validator_indices in self.interesting_validator_indices() {
|
||||
@@ -2845,7 +2846,6 @@ impl ApiTester {
|
||||
.post_validator_duties_inclusion_list(current_epoch, &validator_indices)
|
||||
.await
|
||||
.unwrap();
|
||||
println!("{:?}", res)
|
||||
}
|
||||
self
|
||||
}
|
||||
@@ -6252,14 +6252,15 @@ impl ApiTester {
|
||||
let state = self.chain.head_beacon_state_cloned();
|
||||
let slot = self.harness.chain.slot().unwrap();
|
||||
self.harness.extend_to_slot(slot).await;
|
||||
println!("1");
|
||||
let inclusion_list_committee = state
|
||||
.get_inclusion_list_committee(slot + 1, &self.chain.spec)
|
||||
.unwrap();
|
||||
|
||||
println!("2");
|
||||
self.harness
|
||||
.make_signed_inclusion_lists(inclusion_list_committee, &state, slot + 1)
|
||||
.await;
|
||||
|
||||
println!("3");
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user