diff --git a/config/src/main/resources/ropsten.json b/config/src/main/resources/ropsten.json index 710f15acc9d..0cb152fe0a7 100644 --- a/config/src/main/resources/ropsten.json +++ b/config/src/main/resources/ropsten.json @@ -8,6 +8,7 @@ "byzantiumBlock": 1700000, "constantinopleBlock": 4230000, "constantinopleFixBlock": 4939394, + "istanbulBlock": 6485846, "ethash": { } }, diff --git a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolScheduleTest.java b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolScheduleTest.java index ee1b025698f..9be3135a2b9 100644 --- a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolScheduleTest.java +++ b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/MainnetProtocolScheduleTest.java @@ -91,13 +91,14 @@ public void shouldCreateRopstenConfig() throws Exception { Resources.toString( this.getClass().getResource("/ropsten.json"), StandardCharsets.UTF_8)) .getConfigOptions()); - Assertions.assertThat(sched.getByBlockNumber(0).getName()).isEqualTo("TangerineWhistle"); - Assertions.assertThat(sched.getByBlockNumber(1).getName()).isEqualTo("TangerineWhistle"); - Assertions.assertThat(sched.getByBlockNumber(10).getName()).isEqualTo("SpuriousDragon"); - Assertions.assertThat(sched.getByBlockNumber(1700000).getName()).isEqualTo("Byzantium"); - Assertions.assertThat(sched.getByBlockNumber(4230000).getName()).isEqualTo("Constantinople"); - Assertions.assertThat(sched.getByBlockNumber(4939394).getName()).isEqualTo("ConstantinopleFix"); - Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()) + Assertions.assertThat(sched.getByBlockNumber(0L).getName()).isEqualTo("TangerineWhistle"); + Assertions.assertThat(sched.getByBlockNumber(1L).getName()).isEqualTo("TangerineWhistle"); + Assertions.assertThat(sched.getByBlockNumber(10L).getName()).isEqualTo("SpuriousDragon"); + Assertions.assertThat(sched.getByBlockNumber(1_700_000L).getName()).isEqualTo("Byzantium"); + Assertions.assertThat(sched.getByBlockNumber(4_230_000L).getName()).isEqualTo("Constantinople"); + Assertions.assertThat(sched.getByBlockNumber(4_939_394L).getName()) .isEqualTo("ConstantinopleFix"); + Assertions.assertThat(sched.getByBlockNumber(6_485_846L).getName()).isEqualTo("Istanbul"); + Assertions.assertThat(sched.getByBlockNumber(Long.MAX_VALUE).getName()).isEqualTo("Istanbul"); } }