Skip to content

Commit f7a0b37

Browse files
committed
fix sse event failure
1 parent 54844b3 commit f7a0b37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

beacon_node/beacon_chain/src/beacon_chain.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,17 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
20492049
}
20502050
}
20512051
}
2052+
2053+
if event_handler.has_attestation_subscribers() {
2054+
let current_fork = self
2055+
.spec
2056+
.fork_name_at_slot::<T::EthSpec>(v.attestation().data().slot);
2057+
if !current_fork.electra_enabled() {
2058+
event_handler.register(EventKind::Attestation(Box::new(
2059+
v.attestation().clone_as_attestation(),
2060+
)));
2061+
}
2062+
}
20522063
}
20532064
metrics::inc_counter(&metrics::UNAGGREGATED_ATTESTATION_PROCESSING_SUCCESSES);
20542065
},

0 commit comments

Comments
 (0)