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 /params | |
parent | 14cc40a31a3f3aa229e6770911324daa2928ef57 (diff) | |
parent | d51a9fd6b7902e35990925c21bfeef427227c628 (diff) | |
download | dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.gz dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.bz2 dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.lz dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.xz dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.tar.zst dexon-ff2c966e7f0550f4c0cb2b482d1af3064e6db0fe.zip |
Merge pull request #14418 from karalabe/rinkeby-flag
cmd, core, params: add --rinkeby flag for fast connectivity
Diffstat (limited to 'params')
-rw-r--r-- | params/bootnodes.go | 12 | ||||
-rw-r--r-- | params/config.go | 18 |
2 files changed, 29 insertions, 1 deletions
diff --git a/params/bootnodes.go b/params/bootnodes.go index 496ab68ec..6a145a7a8 100644 --- a/params/bootnodes.go +++ b/params/bootnodes.go @@ -39,6 +39,18 @@ var TestnetBootnodes = []string{ "enode://20c9ad97c081d63397d7b685a412227a40e23c8bdc6688c6f37e97cfbc22d2b4d1db1510d8f61e6a8866ad7f0e17c02b14182d37ea7c3c8b9c2683aeb6b733a1@52.169.14.227:30303", // IE } +// RinkebyBootnodes are the enode URLs of the P2P bootstrap nodes running on the +// Rinkeby test network. +var RinkebyBootnodes = []string{ + "enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303", // IE +} + +// RinkebyV5Bootnodes are the enode URLs of the P2P bootstrap nodes running on the +// Rinkeby test network for the experimental RLPx v5 topic-discovery network. +var RinkebyV5Bootnodes = []string{ + "enode://a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf@52.169.42.101:30303?discport=30304", // IE +} + // DiscoveryV5Bootnodes are the enode URLs of the P2P bootstrap nodes for the // experimental RLPx v5 topic-discovery network. var DiscoveryV5Bootnodes = []string{ 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. |