From 6cd5e9fc4b256a71b6e3a79f17ac73a1bc7189a7 Mon Sep 17 00:00:00 2001 From: Pratik Patil Date: Mon, 2 Jun 2025 20:18:12 +0530 Subject: [PATCH] params: updated the TTD from 0 to math.MaxInt64 --- ethclient/ethclient_test.go | 3 ++- params/config.go | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go index eb0315f010..f1cfd04c15 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -65,7 +65,7 @@ var ( ) var genesis = &core.Genesis{ - Config: params.AllDevChainProtocolChanges, + Config: params.AllDevChainProtocolChanges1, Alloc: types.GenesisAlloc{ testAddr: {Balance: testBalance}, revertContractAddr: {Code: revertCode}, @@ -103,6 +103,7 @@ func newTestBackend(config *node.Config) (*node.Node, []*types.Block, error) { if err != nil { return nil, nil, fmt.Errorf("can't create new node: %v", err) } + // Create Ethereum Service ecfg := ðconfig.Config{Genesis: genesis, RPCGasCap: 1000000} ethservice, err := eth.New(n, ecfg) diff --git a/params/config.go b/params/config.go index df6eb18789..a0ab7841ad 100644 --- a/params/config.go +++ b/params/config.go @@ -520,6 +520,29 @@ var ( Bor: &BorConfig{BurntContract: map[string]string{"0": "0x000000000000000000000000000000000000dead"}}, } + AllDevChainProtocolChanges1 = &ChainConfig{ + ChainID: big.NewInt(1337), + HomesteadBlock: big.NewInt(0), + EIP150Block: big.NewInt(0), + EIP155Block: big.NewInt(0), + EIP158Block: big.NewInt(0), + ByzantiumBlock: big.NewInt(0), + ConstantinopleBlock: big.NewInt(0), + PetersburgBlock: big.NewInt(0), + IstanbulBlock: big.NewInt(0), + MuirGlacierBlock: big.NewInt(0), + BerlinBlock: big.NewInt(0), + LondonBlock: big.NewInt(0), + ArrowGlacierBlock: big.NewInt(0), + GrayGlacierBlock: big.NewInt(0), + TerminalTotalDifficulty: big.NewInt(math.MaxInt64), + BlobScheduleConfig: &BlobScheduleConfig{ + Cancun: DefaultCancunBlobConfig, + Prague: DefaultPragueBlobConfig, + }, + Bor: &BorConfig{BurntContract: map[string]string{"0": "0x000000000000000000000000000000000000dead"}}, + } + // AllCliqueProtocolChanges contains every protocol change (EIPs) introduced // and accepted by the Ethereum core developers into the Clique consensus. AllCliqueProtocolChanges = &ChainConfig{