aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-04 17:36:20 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-05-04 17:36:20 +0800
commitd51a9fd6b7902e35990925c21bfeef427227c628 (patch)
tree25f73247739c0c88a4737f605d9a574872acaf64 /core/genesis.go
parente1dc7ece624a2f539b71f1dfb5901047f7a9f214 (diff)
downloadgo-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar.gz
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar.bz2
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar.lz
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar.xz
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.tar.zst
go-tangerine-d51a9fd6b7902e35990925c21bfeef427227c628.zip
cmd, core, params: add --rinkeby flag for fast connectivity
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go12
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{