Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch from optimistic to normal sync in acceptance tests #6019

Merged
merged 3 commits into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ void shouldSwitchToOptimisticSyncAfterMergeWhenExecutionEngineIsSyncing() throws
executionNode2.restartWithEmptyDatabase();

tekuNode2.waitForOptimisticBlock();

// Now make execution node sync and clarify switch from optimistic sync back to the normal
executionNode2.addPeer(executionNode1);
tekuNode2.waitForNonOptimisticBlock();
}

private TekuNode.Config configureTekuNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup() throws Exception {
config
.withMiningEnabled(true)
.withMergeSupport(true)
.withP2pEnabled(false)
.withP2pEnabled(true)
.withGenesisFile("besu/preMergeGenesis.json")
.withJwtTokenAuthorization(JWT_FILE));
executionNode1.start();
Expand All @@ -53,7 +53,7 @@ void setup() throws Exception {
config ->
config
.withMergeSupport(true)
.withP2pEnabled(false)
.withP2pEnabled(true)
.withGenesisFile("besu/preMergeGenesis.json")
.withJwtTokenAuthorization(JWT_FILE));
executionNode2.start();
Expand All @@ -75,9 +75,13 @@ void setup() throws Exception {
}

@Test
void shouldPassMergeOptimisticallyAndBeginFinalizationAfterSafeSlotsToImport() {
void shouldPassMergeOptimisticallyAndBeginFinalizationAfterSafeSlotsToImport() throws Exception {
tekuNode2.waitForNonDefaultExecutionPayload();
tekuNode2.waitForOptimisticBlock();

// Now make execution node sync and clarify switch from optimistic sync back to the normal
executionNode2.addPeer(executionNode1);
tekuNode2.waitForNonOptimisticBlock();
}

private TekuNode.Config configureTekuNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
package tech.pegasys.teku.test.acceptance.dsl;

public enum BesuDockerVersion {
STABLE("22.4.4");
STABLE("22.7.0");

private final String version;

Expand Down