From bbc76a25b63656ce0d675baea97d87e1807c661b Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Fri, 7 Dec 2018 13:14:23 -0700 Subject: [PATCH] Constantinople Fork Block (#382) As per AllCoreDevs call #51 Constantinople fork is 7080000. https://github.com/ethereum/pm/issues/64 https://github.com/ethereum/pm/blob/master/All%20Core%20Devs%20Meetings/Meeting%2051.md --- config/src/main/resources/mainnet.json | 1 + .../ethereum/mainnet/MainnetProtocolScheduleTest.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/src/main/resources/mainnet.json b/config/src/main/resources/mainnet.json index b853e7bcf6..ce6570fc7c 100644 --- a/config/src/main/resources/mainnet.json +++ b/config/src/main/resources/mainnet.json @@ -9,6 +9,7 @@ "eip155Block": 2675000, "eip158Block": 2675000, "byzantiumBlock": 4370000, + "constantinopleBlock": 7080000, "ethash": { } diff --git a/ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetProtocolScheduleTest.java b/ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetProtocolScheduleTest.java index 9b69aae64a..95355ef0df 100644 --- a/ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetProtocolScheduleTest.java +++ b/ethereum/core/src/test/java/tech/pegasys/pantheon/ethereum/mainnet/MainnetProtocolScheduleTest.java @@ -37,7 +37,9 @@ public void shouldReturnDefaultProtocolSpecsWhenCustomNumbersAreNotUsed() { .isEqualTo("TangerineWhistle"); Assertions.assertThat(sched.getByBlockNumber(2_675_000L).getName()).isEqualTo("SpuriousDragon"); Assertions.assertThat(sched.getByBlockNumber(4_730_000L).getName()).isEqualTo("Byzantium"); - Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()).isEqualTo("Byzantium"); + Assertions.assertThat(sched.getByBlockNumber(7_080_000L).getName()).isEqualTo("Constantinople"); + Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()) + .isEqualTo("Constantinople"); } @Test