Skip to content

Commit

Permalink
small nit refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 13, 2023
1 parent f5f265a commit f9d59fe
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ void shouldUpgradeToCapella() throws Exception {
final UInt64 currentTime = timeProvider.getTimeInSeconds();
final int genesisTime = currentTime.plus(30).intValue(); // magic node startup time
final int shanghaiTime = genesisTime + 4 * 2; // 4 slots, 2 seconds each
final Map<String, String> genesisOverrides =
Map.of("shanghaiTime", String.valueOf(shanghaiTime));

BesuNode primaryEL =
createBesuNode(
Expand All @@ -52,7 +54,7 @@ void shouldUpgradeToCapella() throws Exception {
.withGenesisFile("besu/shanghaiGenesis.json")
.withP2pEnabled(true)
.withJwtTokenAuthorization(JWT_FILE),
Map.of("shanghaiTime", String.valueOf(shanghaiTime)));
genesisOverrides);
primaryEL.start();

BesuNode secondaryEL =
Expand All @@ -64,7 +66,7 @@ void shouldUpgradeToCapella() throws Exception {
.withGenesisFile("besu/shanghaiGenesis.json")
.withP2pEnabled(true)
.withJwtTokenAuthorization(JWT_FILE),
Map.of("shanghaiTime", String.valueOf(shanghaiTime)));
genesisOverrides);
secondaryEL.start();
secondaryEL.addPeer(primaryEL);

Expand Down

0 comments on commit f9d59fe

Please sign in to comment.