@Test void shouldCalculateCachePeriodForMinimalConstantsFromFollowDistance() { assertThat(Eth1DataCachePeriodCalculator.calculateEth1DataCacheDurationPriorToFollowDistance()) .isEqualTo(UInt64.valueOf(470)); }
public static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance() { long cacheDurationSeconds = SECONDS_PER_SLOT; cacheDurationSeconds += (EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH * SECONDS_PER_SLOT); cacheDurationSeconds += SECONDS_PER_ETH1_BLOCK.longValue() * ETH1_FOLLOW_DISTANCE.longValue(); cacheDurationSeconds += SLOTS_PER_EPOCH * SECONDS_PER_SLOT; return UInt64.valueOf(cacheDurationSeconds); }
Eth1DataCachePeriodCalculator { public static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance() { long cacheDurationSeconds = SECONDS_PER_SLOT; cacheDurationSeconds += (EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH * SECONDS_PER_SLOT); cacheDurationSeconds += SECONDS_PER_ETH1_BLOCK.longValue() * ETH1_FOLLOW_DISTANCE.longValue(); cacheDurationSeconds += SLOTS_PER_EPOCH * SECONDS_PER_SLOT; return UInt64.valueOf(cacheDurationSeconds); } }
Eth1DataCachePeriodCalculator { public static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance() { long cacheDurationSeconds = SECONDS_PER_SLOT; cacheDurationSeconds += (EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH * SECONDS_PER_SLOT); cacheDurationSeconds += SECONDS_PER_ETH1_BLOCK.longValue() * ETH1_FOLLOW_DISTANCE.longValue(); cacheDurationSeconds += SLOTS_PER_EPOCH * SECONDS_PER_SLOT; return UInt64.valueOf(cacheDurationSeconds); }  }
Eth1DataCachePeriodCalculator { public static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance() { long cacheDurationSeconds = SECONDS_PER_SLOT; cacheDurationSeconds += (EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH * SECONDS_PER_SLOT); cacheDurationSeconds += SECONDS_PER_ETH1_BLOCK.longValue() * ETH1_FOLLOW_DISTANCE.longValue(); cacheDurationSeconds += SLOTS_PER_EPOCH * SECONDS_PER_SLOT; return UInt64.valueOf(cacheDurationSeconds); }  static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance(); static UInt64 calculateEth1DataCacheDurationPriorToCurrentTime(); }
Eth1DataCachePeriodCalculator { public static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance() { long cacheDurationSeconds = SECONDS_PER_SLOT; cacheDurationSeconds += (EPOCHS_PER_ETH1_VOTING_PERIOD * SLOTS_PER_EPOCH * SECONDS_PER_SLOT); cacheDurationSeconds += SECONDS_PER_ETH1_BLOCK.longValue() * ETH1_FOLLOW_DISTANCE.longValue(); cacheDurationSeconds += SLOTS_PER_EPOCH * SECONDS_PER_SLOT; return UInt64.valueOf(cacheDurationSeconds); }  static UInt64 calculateEth1DataCacheDurationPriorToFollowDistance(); static UInt64 calculateEth1DataCacheDurationPriorToCurrentTime();  }