Skip to content

Commit f165c53

Browse files
committed
rm seemingly unused isValidAttestationSlot
This is also unused in lodestar-ts
1 parent 138b94d commit f165c53

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/state_transition/utils/attestation.zig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ pub fn isSlashableAttestationData(data1: *const AttestationData, data2: *const A
2020
return false;
2121
}
2222

23-
pub fn isValidAttestationSlot(attestation_slot: Slot, current_slot: Slot) bool {
24-
return attestation_slot + preset.MIN_ATTESTATION_INCLUSION_DELAY <= current_slot and
25-
current_slot <= attestation_slot + preset.SLOTS_PER_EPOCH;
26-
}
27-
2823
// consumer takes the ownership of the returned array
2924
pub fn getAttesterSlashableIndices(allocator: Allocator, attester_slashing: *const AttesterSlashing) !std.ArrayList(ValidatorIndex) {
3025
var att_set_1 = std.AutoArrayHashMap(ValidatorIndex, bool).init(allocator);

0 commit comments

Comments
 (0)