[config] Add localnet config

pull/2036/head
Daniel Van Der Maden 5 years ago
parent 352833d773
commit 637216f51e
  1. 2
      internal/configs/node/config.go
  2. 11
      internal/params/config.go

@ -296,6 +296,8 @@ func (t NetworkType) ChainConfig() params.ChainConfig {
return *params.MainnetChainConfig return *params.MainnetChainConfig
case Pangaea: case Pangaea:
return *params.PangaeaChainConfig return *params.PangaeaChainConfig
case Localnet:
return *params.LocalnetChainConfig
default: default:
return *params.TestnetChainConfig return *params.TestnetChainConfig
} }

@ -55,6 +55,17 @@ var (
S3Epoch: big.NewInt(0), S3Epoch: big.NewInt(0),
} }
// LocalnetChainConfig contains the chain parameters to run for local development.
LocalnetChainConfig = &ChainConfig{
ChainID: TestnetChainID,
CrossTxEpoch: big.NewInt(0),
CrossLinkEpoch: big.NewInt(3),
StakingEpoch: big.NewInt(4),
PreStakingEpoch: big.NewInt(2),
EIP155Epoch: big.NewInt(0),
S3Epoch: big.NewInt(0),
}
// AllProtocolChanges ... // AllProtocolChanges ...
// This configuration is intentionally not using keyed fields to force anyone // This configuration is intentionally not using keyed fields to force anyone
// adding flags to the config to also have to set these fields. // adding flags to the config to also have to set these fields.

Loading…
Cancel
Save