aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.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 /params/config.go
parente1dc7ece624a2f539b71f1dfb5901047f7a9f214 (diff)
downloaddexon-d51a9fd6b7902e35990925c21bfeef427227c628.tar.gz
dexon-d51a9fd6b7902e35990925c21bfeef427227c628.tar.zst
dexon-d51a9fd6b7902e35990925c21bfeef427227c628.zip
cmd, core, params: add --rinkeby flag for fast connectivity
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go
index c5a2afb5b..bc63a45b9 100644
--- a/params/config.go
+++ b/params/config.go
@@ -37,7 +37,7 @@ var (
Ethash: new(EthashConfig),
}
- // TestnetChainConfig contains the chain parameters to run a node on the ropsten test network.
+ // TestnetChainConfig contains the chain parameters to run a node on the Ropsten test network.
TestnetChainConfig = &ChainConfig{
ChainId: big.NewInt(3),
HomesteadBlock: big.NewInt(0),
@@ -50,6 +50,22 @@ var (
Ethash: new(EthashConfig),
}
+ // RinkebyChainConfig contains the chain parameters to run a node on the Rinkeby test network.
+ RinkebyChainConfig = &ChainConfig{
+ ChainId: big.NewInt(4),
+ HomesteadBlock: big.NewInt(1),
+ DAOForkBlock: nil,
+ DAOForkSupport: true,
+ EIP150Block: big.NewInt(2),
+ EIP150Hash: common.HexToHash("0x9b095b36c15eaf13044373aef8ee0bd3a382a5abb92e402afa44b8249c3a90e9"),
+ EIP155Block: big.NewInt(3),
+ EIP158Block: big.NewInt(3),
+ Clique: &CliqueConfig{
+ Period: 15,
+ Epoch: 30000,
+ },
+ }
+
// AllProtocolChanges contains every protocol change (EIPs)
// introduced and accepted by the Ethereum core developers.
// TestChainConfig is like AllProtocolChanges but has chain ID 1.