aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-20 17:01:15 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:26:28 +0800
commit85d795d9314ef80d667c17318342515ea4798dec (patch)
tree3afcfa4103e8a04279784bdfdd03b69733dbd41c /core/genesis.go
parent856a327e813a05a2a7706efc82d813234fb2e349 (diff)
downloadgo-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar.gz
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar.bz2
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar.lz
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar.xz
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.tar.zst
go-tangerine-85d795d9314ef80d667c17318342515ea4798dec.zip
Remove reference of Rinkeby and Goerli network.
We do not need ethereum Rinkeby and Goerli network in our system, remove it.
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go26
1 files changed, 1 insertions, 25 deletions
diff --git a/core/genesis.go b/core/genesis.go
index b73ad10f9..cdc5531f2 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -375,30 +375,6 @@ func DefaultTestnetGenesisBlock() *Genesis {
}
}
-// DefaultRinkebyGenesisBlock returns the Rinkeby network genesis block.
-func DefaultRinkebyGenesisBlock() *Genesis {
- return &Genesis{
- Config: params.RinkebyChainConfig,
- Timestamp: 1492009146,
- ExtraData: hexutil.MustDecode("0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"),
- GasLimit: 4700000,
- Difficulty: big.NewInt(1),
- Alloc: decodePrealloc(rinkebyAllocData),
- }
-}
-
-// DefaultGoerliGenesisBlock returns the Görli network genesis block.
-func DefaultGoerliGenesisBlock() *Genesis {
- return &Genesis{
- Config: params.GoerliChainConfig,
- Timestamp: 1548854791,
- ExtraData: hexutil.MustDecode("0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"),
- GasLimit: 10485760,
- Difficulty: big.NewInt(1),
- Alloc: decodePrealloc(goerliAllocData),
- }
-}
-
// DeveloperGenesisBlock returns the 'geth --dev' genesis block. Note, this must
// be seeded with the
func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
@@ -421,7 +397,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
common.BytesToAddress([]byte{6}): {Balance: big.NewInt(1)}, // ECAdd
common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul
common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing
- faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
+ faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
},
}
}