add london block for mainnet (#2504)

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
pull/2501/head
Justin Florentine 3 years ago committed by GitHub
parent 3e256baed3
commit 9fe760fd83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      besu/src/test/java/org/hyperledger/besu/ForkIdsTest.java
  2. 1
      config/src/main/resources/mainnet.json
  3. 3
      ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolScheduleTest.java

@ -107,8 +107,9 @@ public class ForkIdsTest {
new ForkId(Bytes.ofUnsignedInt(0x668db0afL), 9069000L),
new ForkId(Bytes.ofUnsignedInt(0x879d6e30L), 9200000L),
new ForkId(Bytes.ofUnsignedInt(0xe029e991L), 12244000L),
new ForkId(Bytes.ofUnsignedInt(0xeb440f6L), 0L),
new ForkId(Bytes.ofUnsignedInt(0xeb440f6L), 0L))
new ForkId(Bytes.ofUnsignedInt(0xeb440f6L), 12965000),
new ForkId(Bytes.ofUnsignedInt(0xb715077dL), 0L),
new ForkId(Bytes.ofUnsignedInt(0xb715077dL), 0L))
},
new Object[] {
NetworkName.MORDOR,

@ -10,6 +10,7 @@
"istanbulBlock": 9069000,
"muirGlacierBlock": 9200000,
"berlinBlock": 12244000,
"londonBlock": 12965000,
"ethash": {
}
},

@ -45,7 +45,8 @@ public class MainnetProtocolScheduleTest {
Assertions.assertThat(sched.getByBlockNumber(9_069_000L).getName()).isEqualTo("Istanbul");
Assertions.assertThat(sched.getByBlockNumber(9_200_000L).getName()).isEqualTo("MuirGlacier");
Assertions.assertThat(sched.getByBlockNumber(12_244_000L).getName()).isEqualTo("Berlin");
Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()).isEqualTo("Berlin");
Assertions.assertThat(sched.getByBlockNumber(12_965_000L).getName()).isEqualTo("London");
Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()).isEqualTo("London");
}
@Test

Loading…
Cancel
Save