diff --git a/light-clients/ethereum-light-client/src/consensus_state.rs b/light-clients/ethereum-light-client/src/consensus_state.rs index 7c9c81098e..498e957e38 100644 --- a/light-clients/ethereum-light-client/src/consensus_state.rs +++ b/light-clients/ethereum-light-client/src/consensus_state.rs @@ -48,7 +48,7 @@ impl TrustedConsensusState { // We are making sure that the given trusted sync committee actually matches // the sync committee that we stored if active_sync_committee != given_committee.aggregate_pubkey - && given_committee.aggregate_pubkey != aggregate_public_key + || given_committee.aggregate_pubkey != aggregate_public_key { Err(Error::InvalidSyncCommittee) } else { diff --git a/voyager/src/chain/evm.rs b/voyager/src/chain/evm.rs index a9d9acd38c..088e2a2dbf 100644 --- a/voyager/src/chain/evm.rs +++ b/voyager/src/chain/evm.rs @@ -885,7 +885,7 @@ where chain_id, data: Fetch::LightClientSpecific(LightClientSpecificFetch( CometblsFetchMsg::FetchBootstrap(FetchBootstrap { - slot: currently_trusted_slot, + slot: light_client_update.attested_header.beacon.slot, __marker: PhantomData, }), )), @@ -1447,10 +1447,7 @@ where hlist_pat![ Identified { chain_id: bootstrap_chain_id, - data: BootstrapData { - slot: bootstrap_slot, - bootstrap - } + data: BootstrapData { slot, bootstrap } }, Identified { chain_id: account_update_chain_id, @@ -1473,7 +1470,6 @@ where assert_eq!(bootstrap_chain_id, account_update_chain_id); assert_eq!(chain_id, account_update_chain_id); assert_eq!(chain_id, beacon_api_chain_id); - assert_eq!(bootstrap_slot, currently_trusted_slot); let header = wasm::header::Header { height: Height {