Skip to content

Commit

Permalink
[PAN-3158] Add Istanbul block for Ropsten (#26)
Browse files Browse the repository at this point in the history
Set the fork block for Istanbul on ropsten to block #6485846

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
  • Loading branch information
shemnon committed Sep 18, 2019
1 parent 5d1d3be commit aac22e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions config/src/main/resources/ropsten.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"byzantiumBlock": 1700000,
"constantinopleBlock": 4230000,
"constantinopleFixBlock": 4939394,
"istanbulBlock": 6485846,
"ethash": {
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit aac22e9

Please sign in to comment.