mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
add electra fork enabled fn to ForkName impl (#36)
* add electra fork enabled fn to ForkName impl * remove inadvertent file
This commit is contained in:
committed by
dapplion
parent
9e84779522
commit
7af3f2eb35
@@ -286,7 +286,7 @@ impl<E: EthSpec> OperationPool<E> {
|
||||
// TODO(electra): Work out how to do this more elegantly. This is a bit of a hack.
|
||||
let mut all_attestations = self.attestations.write();
|
||||
|
||||
if fork_name >= ForkName::Electra {
|
||||
if fork_name.electra_enabled() {
|
||||
all_attestations.aggregate_across_committees(prev_epoch_key);
|
||||
all_attestations.aggregate_across_committees(curr_epoch_key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user