Skip to content

Commit

Permalink
Schedule deneb for mainnet (#7966)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr authored Feb 9, 2024
1 parent a24f848 commit 49e8e07
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ the [releases page](/~https://github.com/Consensys/teku/releases).
### Additions and Improvements
- Improved compatibility with `/eth/v3/validator/blocks/{slot}` experimental beacon API for block production. It can now respond with blinded and unblinded content based on the block production flow. It also supports the `builder_boost_factor` parameter.
- Add `block_gossip` SSE event as per /~https://github.com/ethereum/beacon-APIs/pull/405
- - Deposit tree snapshots will be downloaded from checkpoint-sync-url when available [#7715](/~https://github.com/Consensys/teku/issues/7715)
- Deposit tree snapshots will be downloaded from checkpoint-sync-url when available [#7715](/~https://github.com/Consensys/teku/issues/7715)
- Updated mainnet configuration with Deneb fork scheduled for epoch 269568 (March 13, 2024, 01:55:35pm UTC)
### Bug Fixes
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CAPELLA_FORK_VERSION: 0x03000000
CAPELLA_FORK_EPOCH: 194048 # April 12, 2023, 10:27:35pm UTC
# Deneb
DENEB_FORK_VERSION: 0x04000000
DENEB_FORK_EPOCH: 18446744073709551615
DENEB_FORK_EPOCH: 269568 # March 13, 2024, 01:55:35pm UTC
# EIP6110
EIP6110_FORK_VERSION: 0x05000000 # temporary stub
EIP6110_FORK_EPOCH: 18446744073709551615
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ public class SpecFactoryTest {

private static final Set<String> NON_BELLATRIX_NETWORKS = Set.of("swift", "less-swift");

private static final Set<String> CAPELLA_NETWORKS = Set.of("mainnet", "gnosis", "lukso");
private static final Set<String> CAPELLA_NETWORKS = Set.of("gnosis", "lukso");

private static final Set<String> DENEB_NETWORKS =
Set.of("prater", "chiado", "sepolia", "holesky");
Set.of("prater", "chiado", "sepolia", "holesky", "mainnet");

@Test
public void defaultFactoryShouldScheduleBellatrixAndCapellaForMainNet() {
final Spec spec = SpecFactory.create("mainnet");
assertThat(spec.getForkSchedule().getSupportedMilestones())
.containsExactly(PHASE0, ALTAIR, BELLATRIX, CAPELLA);
.containsExactly(PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB);
}

@ParameterizedTest(name = "{0}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

class Eth2NetworkOptionsTest extends AbstractBeaconNodeCommandTest {
@Test
void shouldEnableCapellaByDefault() {
void shouldEnableDenebByDefault() {
final TekuConfiguration config = getTekuConfigurationFromArguments();
final Spec spec = config.eth2NetworkConfiguration().getSpec();
assertThat(spec.getForkSchedule().getHighestSupportedMilestone())
.isEqualTo(SpecMilestone.CAPELLA);
.isEqualTo(SpecMilestone.DENEB);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ public void forwardSyncRateLimit_shouldBeSettable() {
public void forwardSyncBatchSize_greaterThanMessageSizeShouldThrowException() {
assertThatThrownBy(() -> createConfigBuilder().sync(s -> s.forwardSyncBatchSize(3000)).build())
.isInstanceOf(InvalidConfigurationException.class)
.hasMessage("Forward sync batch size cannot be greater than 1024");
.hasMessage("Forward sync batch size cannot be greater than 128");
}

@Test
public void historicalSyncBatchSize_greaterThanMessageSizeShouldThrowException() {
assertThatThrownBy(
() -> createConfigBuilder().sync(s -> s.historicalSyncBatchSize(3000)).build())
.isInstanceOf(InvalidConfigurationException.class)
.hasMessage("Historical sync batch size cannot be greater than 1024");
.hasMessage("Historical sync batch size cannot be greater than 128");
}
}

0 comments on commit 49e8e07

Please sign in to comment.