Revert "Add terminal block hash and number to Ropsten genesis file (#4026)" (#4093)

This reverts commit 27fc468624.

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
pull/4098/head
Fabio Di Fabio 2 years ago committed by GitHub
parent e97ed8d944
commit b85b39d307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      besu/src/main/java/org/hyperledger/besu/controller/BesuControllerBuilder.java
  2. 4
      besu/src/test/java/org/hyperledger/besu/ForkIdsTest.java
  3. 2
      config/src/main/resources/ropsten.json

@ -634,19 +634,6 @@ public abstract class BesuControllerBuilder implements MiningParameterOverrides
protocolSchedule, metricsSystem, requiredBlock.getKey(), requiredBlock.getValue()));
}
final Optional<Hash> terminalBlockHash = configOptionsSupplier.get().getTerminalBlockHash();
if (terminalBlockHash.isPresent() && !terminalBlockHash.get().equals(Hash.ZERO)) {
final OptionalLong terminalBlockNumber = configOptionsSupplier.get().getTerminalBlockNumber();
if (terminalBlockNumber.isPresent()) {
validators.add(
new RequiredBlocksPeerValidator(
protocolSchedule,
metricsSystem,
terminalBlockNumber.getAsLong(),
terminalBlockHash.get()));
}
}
final CheckpointConfigOptions checkpointConfigOptions =
genesisConfig.getConfigOptions(genesisConfigOverrides).getCheckpointOptions();
if (SyncMode.X_CHECKPOINT.equals(syncConfig.getSyncMode())

@ -67,8 +67,8 @@ public class ForkIdsTest {
new ForkId(Bytes.ofUnsignedInt(0x4bc66396L), 7117117L),
new ForkId(Bytes.ofUnsignedInt(0x6727ef90L), 9812189L),
new ForkId(Bytes.ofUnsignedInt(0xa157d377L), 10499401L),
new ForkId(Bytes.ofUnsignedInt(0x7119b6b3L), 12350712L),
new ForkId(Bytes.ofUnsignedInt(0xaae42f33L), 0L))
new ForkId(Bytes.ofUnsignedInt(0x7119b6b3L), 0L),
new ForkId(Bytes.ofUnsignedInt(0x7119b6b3L), 0L))
},
new Object[] {
NetworkName.RINKEBY,

@ -11,8 +11,6 @@
"berlinBlock": 9812189,
"londonBlock": 10499401,
"terminalTotalDifficulty": 50000000000000000,
"terminalBlockHash": "0x5010949c3acdf1d076c9e4ee8aedbb539aca48ebe19638330bc02c5b1bfb953d",
"terminalBlockNumber": 12350712,
"ethash": {
},
"discovery": {

Loading…
Cancel
Save