mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
params: updated the TTD from 0 to math.MaxInt64
This commit is contained in:
parent
031d9742e6
commit
6cd5e9fc4b
2 changed files with 25 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue