diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-05-04 18:54:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 18:54:02 +0800 |
commit | ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe (patch) | |
tree | af4e387c4e9e2420e759078ebe4e1006dad28ea9 /core/genesis.go | |
parent | 14cc40a31a3f3aa229e6770911324daa2928ef57 (diff) | |
parent | d51a9fd6b7902e35990925c21bfeef427227c628 (diff) | |
download | go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.gz go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.bz2 go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.lz go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.xz go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.zst go-tangerine-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.zip |
Merge pull request #14418 from karalabe/rinkeby-flag
cmd, core, params: add --rinkeby flag for fast connectivity
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go index b65020d32..8f55d3a37 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -278,6 +278,18 @@ 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), + } +} + // DevGenesisBlock returns the 'geth --dev' genesis block. func DevGenesisBlock() *Genesis { return &Genesis{ |