mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
* add : amoy flags and genesis * minor fix * add : amoy.json in internal/cli/server * disable : peer check in mining for Amoy * add : amoy genesis hash * add amoy testnet deployment entries * update : amoy genesis * fix typos * add : post london forks + burn contract * add : amoy genesis hash * bump : version meta to amoy (#1092) * add : amoy bootnodes * chg : maxpeers of amoy val to 3 from 1 * bump : version to v1.1.0-amoy-2 * add : amoychain worker restriction on peercount --------- Co-authored-by: sreevalsanmr <sreevalsan@polygon.technology>
70 lines
2.3 KiB
Go
70 lines
2.3 KiB
Go
package chains
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/core"
|
|
"github.com/ethereum/go-ethereum/params"
|
|
)
|
|
|
|
var amoyTestnet = &Chain{
|
|
NetworkId: 80002,
|
|
Genesis: &core.Genesis{
|
|
Config: ¶ms.ChainConfig{
|
|
ChainID: big.NewInt(80002),
|
|
HomesteadBlock: big.NewInt(0),
|
|
DAOForkBlock: nil,
|
|
DAOForkSupport: true,
|
|
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(73100),
|
|
ShanghaiBlock: big.NewInt(73100),
|
|
Bor: ¶ms.BorConfig{
|
|
JaipurBlock: big.NewInt(73100),
|
|
DelhiBlock: big.NewInt(73100),
|
|
ParallelUniverseBlock: nil,
|
|
IndoreBlock: big.NewInt(73100),
|
|
StateSyncConfirmationDelay: map[string]uint64{
|
|
"0": 128,
|
|
},
|
|
Period: map[string]uint64{
|
|
"0": 2,
|
|
},
|
|
ProducerDelay: map[string]uint64{
|
|
"0": 4,
|
|
},
|
|
Sprint: map[string]uint64{
|
|
"0": 16,
|
|
},
|
|
BackupMultiplier: map[string]uint64{
|
|
"0": 2,
|
|
},
|
|
ValidatorContract: "0x0000000000000000000000000000000000001000",
|
|
StateReceiverContract: "0x0000000000000000000000000000000000001001",
|
|
BurntContract: map[string]string{
|
|
"0": "0x000000000000000000000000000000000000dead",
|
|
"73100": "0xeCDD77cE6f146cCf5dab707941d318Bd50eeD2C9",
|
|
},
|
|
},
|
|
},
|
|
Nonce: 0,
|
|
Timestamp: 1700225065,
|
|
GasLimit: 10000000,
|
|
Difficulty: big.NewInt(1),
|
|
Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
|
|
Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"),
|
|
Alloc: readPrealloc("allocs/amoy.json"),
|
|
},
|
|
Bootnodes: []string{
|
|
"enode://bce861be777e91b0a5a49d58a51e14f32f201b4c6c2d1fbea6c7a1f14756cbb3f931f3188d6b65de8b07b53ff28d03b6e366d09e56360d2124a9fc5a15a0913d@54.217.171.196:30303",
|
|
"enode://4a3dc0081a346d26a73d79dd88216a9402d2292318e2db9947dbc97ea9c4afb2498dc519c0af04420dc13a238c279062da0320181e7c1461216ce4513bfd40bf@13.251.184.185:30303",
|
|
},
|
|
}
|