Skip to content

Commit 45b6c08

Browse files
authored
Remove deprecated Goerli testnet (#7049)
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
1 parent c63f415 commit 45b6c08

File tree

12 files changed

+22
-962
lines changed

12 files changed

+22
-962
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
### Breaking Changes
66
- RocksDB database metadata format has changed to be more expressive, the migration of an existing metadata file to the new format is automatic at startup. Before performing a downgrade to a previous version it is mandatory to revert to the original format using the subcommand `besu --data-path=/path/to/besu/datadir storage revert-metadata v2-to-v1`.
77
- BFT networks won't start with SNAP or CHECKPOINT sync (previously Besu would start with this config but quietly fail to sync, so it's now more obvious that it won't work) [#6625](https://github.com/hyperledger/besu/pull/6625), [#6667](https://github.com/hyperledger/besu/pull/6667)
8-
- Forest pruning has been removed, it was deprecated since 24.1.0. In case you are still using it you must now remove any of the following options: `pruning-enabled`, `pruning-blocks-retained` and `pruning-block-confirmations`, from your configuration, and you may want to consider switching to Bonsai.
8+
- Forest pruning has been removed, it was deprecated since 24.1.0. In case you are still using it you must now remove any of the following options: `pruning-enabled`, `pruning-blocks-retained` and `pruning-block-confirmations`, from your configuration, and you may want to consider switching to Bonsai.
9+
- Deprecated Goerli testnet has been removed.
910

1011
### Upcoming Breaking Changes
1112
- Receipt compaction will be enabled by default in a future version of Besu. After this change it will not be possible to downgrade to the previous Besu version.
@@ -45,6 +46,7 @@
4546
- Allow users to specify which plugins are registered [#6700](https://github.com/hyperledger/besu/pull/6700)
4647
- Layered txpool tuning for blob transactions [#6940](https://github.com/hyperledger/besu/pull/6940)
4748
- Update Gradle to 7.6.4 [#7030](https://github.com/hyperledger/besu/pull/7030)
49+
- Remove deprecated Goerli testnet [#7049](https://github.com/hyperledger/besu/pull/7049)
4850
- Default bonsai to use full-flat db and code-storage-by-code-hash [#6984](https://github.com/hyperledger/besu/pull/6894)
4951

5052
### Bug fixes

besu/src/main/java/org/hyperledger/besu/cli/config/NetworkName.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ public enum NetworkName {
2626
MAINNET("/mainnet.json", BigInteger.valueOf(1)),
2727
/** Sepolia network name. */
2828
SEPOLIA("/sepolia.json", BigInteger.valueOf(11155111)),
29-
/** Goerli network name. */
30-
GOERLI("/goerli.json", BigInteger.valueOf(5)),
3129
/** Holešky network name. */
3230
HOLESKY("/holesky.json", BigInteger.valueOf(17000)),
3331

besu/src/test/java/org/hyperledger/besu/ForkIdsNetworkConfigTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,6 @@ public static Collection<Object[]> parameters() {
7878
new ForkId(Bytes.ofUnsignedInt(0x9b192ad0L), 0L),
7979
new ForkId(Bytes.ofUnsignedInt(0x9b192ad0L), 0L))
8080
},
81-
new Object[] {
82-
NetworkName.GOERLI,
83-
List.of(
84-
new ForkId(Bytes.ofUnsignedInt(0xa3f5ab08L), 1561651L),
85-
new ForkId(Bytes.ofUnsignedInt(0xc25efa5cL), 4460644L),
86-
new ForkId(Bytes.ofUnsignedInt(0x757a1c47L), 5062605L),
87-
new ForkId(Bytes.ofUnsignedInt(0xb8c6299dL), 1678832736L),
88-
new ForkId(Bytes.ofUnsignedInt(0xf9843abfL), 1705473120),
89-
new ForkId(Bytes.ofUnsignedInt(0x70cc14e2L), 0L),
90-
new ForkId(Bytes.ofUnsignedInt(0x70cc14e2L), 0L))
91-
},
9281
new Object[] {
9382
NetworkName.MAINNET,
9483
List.of(

besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@
2121
import static org.hyperledger.besu.cli.config.NetworkName.DEV;
2222
import static org.hyperledger.besu.cli.config.NetworkName.EXPERIMENTAL_EIPS;
2323
import static org.hyperledger.besu.cli.config.NetworkName.FUTURE_EIPS;
24-
import static org.hyperledger.besu.cli.config.NetworkName.GOERLI;
2524
import static org.hyperledger.besu.cli.config.NetworkName.HOLESKY;
2625
import static org.hyperledger.besu.cli.config.NetworkName.MAINNET;
2726
import static org.hyperledger.besu.cli.config.NetworkName.MORDOR;
2827
import static org.hyperledger.besu.cli.config.NetworkName.SEPOLIA;
2928
import static org.hyperledger.besu.ethereum.api.jsonrpc.RpcApis.ENGINE;
30-
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.GOERLI_BOOTSTRAP_NODES;
31-
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.GOERLI_DISCOVERY_URL;
3229
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.MAINNET_BOOTSTRAP_NODES;
3330
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.MAINNET_DISCOVERY_URL;
31+
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.SEPOLIA_BOOTSTRAP_NODES;
32+
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.SEPOLIA_DISCOVERY_URL;
3433
import static org.hyperledger.besu.plugin.services.storage.DataStorageFormat.BONSAI;
3534
import static org.junit.Assume.assumeThat;
3635
import static org.mockito.ArgumentMatchers.any;
@@ -456,19 +455,19 @@ public void testGenesisPathMainnetEthConfig() {
456455
}
457456

458457
@Test
459-
public void testGenesisPathGoerliEthConfig() {
458+
public void testGenesisPathSepoliaEthConfig() {
460459
final ArgumentCaptor<EthNetworkConfig> networkArg =
461460
ArgumentCaptor.forClass(EthNetworkConfig.class);
462461

463-
parseCommand("--network", "goerli");
462+
parseCommand("--network", "sepolia");
464463

465464
verify(mockControllerBuilderFactory).fromEthNetworkConfig(networkArg.capture(), any());
466465
verify(mockControllerBuilder).build();
467466

468467
final EthNetworkConfig config = networkArg.getValue();
469-
assertThat(config.bootNodes()).isEqualTo(GOERLI_BOOTSTRAP_NODES);
470-
assertThat(config.dnsDiscoveryUrl()).isEqualTo(GOERLI_DISCOVERY_URL);
471-
assertThat(config.networkId()).isEqualTo(BigInteger.valueOf(5));
468+
assertThat(config.bootNodes()).isEqualTo(SEPOLIA_BOOTSTRAP_NODES);
469+
assertThat(config.dnsDiscoveryUrl()).isEqualTo(SEPOLIA_DISCOVERY_URL);
470+
assertThat(config.networkId()).isEqualTo(BigInteger.valueOf(11155111));
472471
}
473472

474473
@Test
@@ -1628,24 +1627,6 @@ public void devModeOptionMustBeUsed() {
16281627
assertThat(commandErrorOutput.toString(UTF_8)).isEmpty();
16291628
}
16301629

1631-
@Test
1632-
public void goerliValuesAreUsed() {
1633-
parseCommand("--network", "goerli");
1634-
1635-
final ArgumentCaptor<EthNetworkConfig> networkArg =
1636-
ArgumentCaptor.forClass(EthNetworkConfig.class);
1637-
1638-
verify(mockControllerBuilderFactory).fromEthNetworkConfig(networkArg.capture(), any());
1639-
verify(mockControllerBuilder).build();
1640-
1641-
assertThat(networkArg.getValue()).isEqualTo(EthNetworkConfig.getNetworkConfig(GOERLI));
1642-
1643-
assertThat(commandOutput.toString(UTF_8)).isEmpty();
1644-
assertThat(commandErrorOutput.toString(UTF_8)).isEmpty();
1645-
1646-
verify(mockLogger, never()).warn(contains("Goerli is deprecated and will be shutdown"));
1647-
}
1648-
16491630
@Test
16501631
public void futureEipsValuesAreUsed() {
16511632
parseCommand("--network", "future_eips");
@@ -1748,8 +1729,8 @@ public void mordorValuesAreUsed() {
17481729
}
17491730

17501731
@Test
1751-
public void goerliValuesCanBeOverridden() {
1752-
networkValuesCanBeOverridden("goerli");
1732+
public void sepoliaValuesCanBeOverridden() {
1733+
networkValuesCanBeOverridden("sepolia");
17531734
}
17541735

17551736
@Test

besu/src/test/java/org/hyperledger/besu/cli/NetworkDeprecationMessageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void shouldGenerateDeprecationMessageForDeprecatedNetworks(final NetworkName net
3939
@EnumSource(
4040
value = NetworkName.class,
4141
names = {
42-
"MAINNET", "SEPOLIA", "GOERLI", "DEV", "CLASSIC", "MORDOR", "HOLESKY",
42+
"MAINNET", "SEPOLIA", "DEV", "CLASSIC", "MORDOR", "HOLESKY",
4343
})
4444
void shouldThrowErrorForNonDeprecatedNetworks(final NetworkName network) {
4545
assertThatThrownBy(() -> NetworkDeprecationMessage.generate(network))

besu/src/test/java/org/hyperledger/besu/cli/config/EthNetworkConfigTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
import static org.assertj.core.api.Assertions.assertThat;
1818
import static org.hyperledger.besu.cli.config.NetworkName.MAINNET;
19-
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.GOERLI_BOOTSTRAP_NODES;
20-
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.GOERLI_DISCOVERY_URL;
2119
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.MAINNET_BOOTSTRAP_NODES;
2220
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.MAINNET_DISCOVERY_URL;
21+
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.SEPOLIA_BOOTSTRAP_NODES;
22+
import static org.hyperledger.besu.ethereum.p2p.config.DefaultDiscoveryConfiguration.SEPOLIA_DISCOVERY_URL;
2323

2424
import org.hyperledger.besu.config.GenesisConfigFile;
2525

@@ -41,11 +41,11 @@ public void testDefaultMainnetConfig() {
4141
}
4242

4343
@Test
44-
public void testDefaultGoerliConfig() {
45-
EthNetworkConfig config = EthNetworkConfig.getNetworkConfig(NetworkName.GOERLI);
46-
assertThat(config.dnsDiscoveryUrl()).isEqualTo(GOERLI_DISCOVERY_URL);
47-
assertThat(config.bootNodes()).isEqualTo(GOERLI_BOOTSTRAP_NODES);
48-
assertThat(config.networkId()).isEqualTo(BigInteger.valueOf(5));
44+
public void testDefaultSepoliaConfig() {
45+
EthNetworkConfig config = EthNetworkConfig.getNetworkConfig(NetworkName.SEPOLIA);
46+
assertThat(config.dnsDiscoveryUrl()).isEqualTo(SEPOLIA_DISCOVERY_URL);
47+
assertThat(config.bootNodes()).isEqualTo(SEPOLIA_BOOTSTRAP_NODES);
48+
assertThat(config.networkId()).isEqualTo(BigInteger.valueOf(11155111));
4949
}
5050

5151
@Test

besu/src/test/java/org/hyperledger/besu/ethereum/p2p/config/DefaultDiscoveryConfiguration.java

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import java.util.stream.Stream;
2525

2626
public class DefaultDiscoveryConfiguration {
27-
public static final String GOERLI_DISCOVERY_URL =
28-
"enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net";
27+
public static final String SEPOLIA_DISCOVERY_URL =
28+
"enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.sepolia.ethdisco.net";
2929
public static final String MAINNET_DISCOVERY_URL =
3030
"enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.mainnet.ethdisco.net";
3131

@@ -40,22 +40,6 @@ public class DefaultDiscoveryConfiguration {
4040
)
4141
.map(EnodeURLImpl::fromString)
4242
.collect(toList()));
43-
public static final List<EnodeURL> GOERLI_BOOTSTRAP_NODES =
44-
Collections.unmodifiableList(
45-
Stream.of(
46-
"enode://011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a@51.141.78.53:30303",
47-
"enode://176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b@13.93.54.137:30303",
48-
"enode://46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291@94.237.54.114:30313",
49-
"enode://b5948a2d3e9d486c4d75bf32713221c2bd6cf86463302339299bd227dc2e276cd5a1c7ca4f43a0e9122fe9af884efed563bd2a1fd28661f3b5f5ad7bf1de5949@18.218.250.66:30303",
50-
51-
// Ethereum Foundation bootnode
52-
"enode://a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91@3.11.147.67:30303",
53-
54-
// Goerli Initiative bootnodes
55-
"enode://d4f764a48ec2a8ecf883735776fdefe0a3949eb0ca476bd7bc8d0954a9defe8fea15ae5da7d40b5d2d59ce9524a99daedadf6da6283fca492cc80b53689fb3b3@46.4.99.122:32109",
56-
"enode://d2b720352e8216c9efc470091aa91ddafc53e222b32780f505c817ceef69e01d5b0b0797b69db254c586f493872352f5a022b4d8479a00fc92ec55f9ad46a27e@88.99.70.182:30303")
57-
.map(EnodeURLImpl::fromString)
58-
.collect(toList()));
5943
public static final List<EnodeURL> SEPOLIA_BOOTSTRAP_NODES =
6044
Collections.unmodifiableList(
6145
Stream.of(

0 commit comments

Comments
 (0)