From d51a9fd6b7902e35990925c21bfeef427227c628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 4 May 2017 12:36:20 +0300 Subject: cmd, core, params: add --rinkeby flag for fast connectivity --- core/genesis.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/genesis.go') 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{ -- cgit v1.2.3