timestamp set for dencun on mainnet. (#6545)

* timestamp set for dencun on mainnet, lfg.

---------

Signed-off-by: Justin Florentine <justin+github@florentine.us>
pull/6548/head
Justin Florentine 10 months ago
parent 98a753a409
commit 87a2ec17e4
  1. 5
      besu/src/test/java/org/hyperledger/besu/ForkIdsNetworkConfigTest.java
  2. 1
      config/src/main/resources/mainnet.json
  3. 7
      ethereum/referencetests/src/reference-test/java/org/hyperledger/besu/ethereum/mainnet/DifficultyCalculatorTests.java
  4. 2
      evm/src/main/java/org/hyperledger/besu/evm/precompile/KZGPointEvalPrecompiledContract.java

@ -107,8 +107,9 @@ public class ForkIdsNetworkConfigTest {
new ForkId(Bytes.ofUnsignedInt(0xb715077dL), 13773000L),
new ForkId(Bytes.ofUnsignedInt(0x20c327fcL), 15050000L),
new ForkId(Bytes.ofUnsignedInt(0xf0afd0e3L), 1681338455L),
new ForkId(Bytes.ofUnsignedInt(0xdce96c2dL), 0L),
new ForkId(Bytes.ofUnsignedInt(0xdce96c2dL), 0L))
new ForkId(Bytes.ofUnsignedInt(0xdce96c2dL), 1710338135L),
new ForkId(Bytes.ofUnsignedInt(0x9f3d2254L), 0L),
new ForkId(Bytes.ofUnsignedInt(0x9f3d2254L), 0L))
},
new Object[] {
NetworkName.MORDOR,

@ -15,6 +15,7 @@
"grayGlacierBlock": 15050000,
"terminalTotalDifficulty": 58750000000000000000000,
"shanghaiTime": 1681338455,
"cancunTime": 1710338135,
"ethash": {
},
"discovery": {

@ -31,6 +31,8 @@ import org.hyperledger.besu.evm.log.LogsBloomFilter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Stream;
@ -46,12 +48,15 @@ import org.junit.jupiter.params.provider.MethodSource;
public class DifficultyCalculatorTests {
public static Stream<Arguments> getTestParametersForConfig() throws IOException {
Map<String, String> postMergeOverrides = new HashMap<>();
postMergeOverrides.put("shanghaiTime", "999999999999");
postMergeOverrides.put("cancunTime","999999999999");
return Stream.of(
Arguments.of(
"/BasicTests/difficultyMainNetwork.json",
MainnetProtocolSchedule.fromConfig(
GenesisConfigFile.mainnet()
.getConfigOptions(Map.of("shanghaiTime", "999999999999")),
.getConfigOptions(postMergeOverrides),
EvmConfiguration.DEFAULT)),
Arguments.of(
"/DifficultyTests/dfGrayGlacier/difficultyGrayGlacierForkBlock.json",

@ -79,8 +79,6 @@ public class KZGPointEvalPrecompiledContract implements PrecompiledContract {
"Loading network trusted setup from classpath resource {}", trustedSetupResourceName);
CKZG4844JNI.loadTrustedSetupFromResource(
trustedSetupResourceName, KZGPointEvalPrecompiledContract.class);
} else {
throw new IllegalStateException("KZG trusted setup was already loaded");
}
}

Loading…
Cancel
Save