all: remove support for Ropsten (#26644)

This commit is contained in:
Péter Szilágyi
2023-02-09 10:03:00 +02:00
committed by GitHub
parent 0c9eb8c9a4
commit 095e365fac
22 changed files with 55 additions and 179 deletions
+22 -2
View File
@@ -36,6 +36,26 @@ var (
EIP158Block: big.NewInt(2675000),
ByzantiumBlock: big.NewInt(4370000),
}
ropstenChainConfig = params.ChainConfig{
ChainID: big.NewInt(3),
HomesteadBlock: big.NewInt(0),
DAOForkBlock: nil,
DAOForkSupport: true,
EIP150Block: big.NewInt(0),
EIP150Hash: common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"),
EIP155Block: big.NewInt(10),
EIP158Block: big.NewInt(10),
ByzantiumBlock: big.NewInt(1_700_000),
ConstantinopleBlock: big.NewInt(4_230_000),
PetersburgBlock: big.NewInt(4_939_394),
IstanbulBlock: big.NewInt(6_485_846),
MuirGlacierBlock: big.NewInt(7_117_117),
BerlinBlock: big.NewInt(9_812_189),
LondonBlock: big.NewInt(10_499_401),
TerminalTotalDifficulty: new(big.Int).SetUint64(50_000_000_000_000_000),
TerminalTotalDifficultyPassed: true,
}
)
func TestDifficulty(t *testing.T) {
@@ -53,7 +73,7 @@ func TestDifficulty(t *testing.T) {
// files are 2 years old, contains strange values
dt.skipLoad("difficultyCustomHomestead\\.json")
dt.config("Ropsten", *params.RopstenChainConfig)
dt.config("Ropsten", ropstenChainConfig)
dt.config("Frontier", params.ChainConfig{})
dt.config("Homestead", params.ChainConfig{
@@ -64,7 +84,7 @@ func TestDifficulty(t *testing.T) {
ByzantiumBlock: big.NewInt(0),
})
dt.config("Frontier", *params.RopstenChainConfig)
dt.config("Frontier", ropstenChainConfig)
dt.config("MainNetwork", mainnetChainConfig)
dt.config("CustomMainNetwork", mainnetChainConfig)
dt.config("Constantinople", params.ChainConfig{