params: updated the TTD from 0 to math.MaxInt64

This commit is contained in:
Pratik Patil 2025-06-02 20:18:12 +05:30
parent 031d9742e6
commit 6cd5e9fc4b
No known key found for this signature in database
GPG key ID: AFDCA496554874B3
2 changed files with 25 additions and 1 deletions

View file

@ -65,7 +65,7 @@ var (
) )
var genesis = &core.Genesis{ var genesis = &core.Genesis{
Config: params.AllDevChainProtocolChanges, Config: params.AllDevChainProtocolChanges1,
Alloc: types.GenesisAlloc{ Alloc: types.GenesisAlloc{
testAddr: {Balance: testBalance}, testAddr: {Balance: testBalance},
revertContractAddr: {Code: revertCode}, revertContractAddr: {Code: revertCode},
@ -103,6 +103,7 @@ func newTestBackend(config *node.Config) (*node.Node, []*types.Block, error) {
if err != nil { if err != nil {
return nil, nil, fmt.Errorf("can't create new node: %v", err) return nil, nil, fmt.Errorf("can't create new node: %v", err)
} }
// Create Ethereum Service // Create Ethereum Service
ecfg := &ethconfig.Config{Genesis: genesis, RPCGasCap: 1000000} ecfg := &ethconfig.Config{Genesis: genesis, RPCGasCap: 1000000}
ethservice, err := eth.New(n, ecfg) ethservice, err := eth.New(n, ecfg)

View file

@ -520,6 +520,29 @@ var (
Bor: &BorConfig{BurntContract: map[string]string{"0": "0x000000000000000000000000000000000000dead"}}, 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 // AllCliqueProtocolChanges contains every protocol change (EIPs) introduced
// and accepted by the Ethereum core developers into the Clique consensus. // and accepted by the Ethereum core developers into the Clique consensus.
AllCliqueProtocolChanges = &ChainConfig{ AllCliqueProtocolChanges = &ChainConfig{