Skip to content

Commit

Permalink
another small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 14, 2023
1 parent e84dcb7 commit ad5fb8c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,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 @@ -54,7 +56,7 @@ void shouldUpgradeToCapella() throws Exception {
.withGenesisFile("besu/mergedGenesis.json")
.withP2pEnabled(true)
.withJwtTokenAuthorization(JWT_FILE),
Map.of("shanghaiTime", String.valueOf(shanghaiTime)));
genesisOverrides);
primaryEL.start();

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

Expand Down

0 comments on commit ad5fb8c

Please sign in to comment.