Merge pull request #2036 from Daniel-VDM/localnet_config

[config] Add localnet config for staking
pull/2039/head
Daniel Van Der Maden 5 years ago committed by GitHub
commit 627ffdb598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/configs/node/config.go
  2. 11
      internal/params/config.go

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

@ -55,6 +55,17 @@ var (
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 ...
// This configuration is intentionally not using keyed fields to force anyone
// adding flags to the config to also have to set these fields.

Loading…
Cancel
Save