aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorYondon Fu <yondon.fu@gmail.com>2017-12-19 06:17:41 +0800
committerYondon Fu <yondon.fu@gmail.com>2017-12-19 06:17:41 +0800
commit3857cdc267e3192697f561df0a0f827f65dfb6b5 (patch)
tree401c52c4972a68229ea283a394a0b0a5f3cfdc8e /params
parenta5330fe0c569b75cb8a524f60f7e8dc06498262b (diff)
parentfe070ab5c32702033489f1b9d1655ea1b894c29e (diff)
downloadgo-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.gz
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.bz2
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.lz
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.xz
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.tar.zst
go-tangerine-3857cdc267e3192697f561df0a0f827f65dfb6b5.zip
Merge branch 'master' into abi-offset-fixed-arrays
Diffstat (limited to 'params')
-rw-r--r--params/config.go25
-rw-r--r--params/config_test.go8
-rw-r--r--params/version.go4
3 files changed, 21 insertions, 16 deletions
diff --git a/params/config.go b/params/config.go
index 18579666b..345f6394a 100644
--- a/params/config.go
+++ b/params/config.go
@@ -77,17 +77,22 @@ var (
},
}
- // AllProtocolChanges contains every protocol change (EIPs)
- // introduced and accepted by the Ethereum core developers.
+ // AllEthashProtocolChanges contains every protocol change (EIPs) introduced
+ // and accepted by the Ethereum core developers into the Ethash consensus.
//
- // This configuration is intentionally not using keyed fields.
- // This configuration must *always* have all forks enabled, which
- // means that all fields must be set at all times. This forces
- // anyone adding flags to the config to also have to set these
- // fields.
- AllProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), new(EthashConfig), nil}
- TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), new(EthashConfig), nil}
- TestRules = TestChainConfig.Rules(new(big.Int))
+ // This configuration is intentionally not using keyed fields to force anyone
+ // adding flags to the config to also have to set these fields.
+ AllEthashProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), new(EthashConfig), nil}
+
+ // AllCliqueProtocolChanges contains every protocol change (EIPs) introduced
+ // and accepted by the Ethereum core developers into the Clique consensus.
+ //
+ // This configuration is intentionally not using keyed fields to force anyone
+ // adding flags to the config to also have to set these fields.
+ AllCliqueProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, &CliqueConfig{Period: 0, Epoch: 30000}}
+
+ TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), new(EthashConfig), nil}
+ TestRules = TestChainConfig.Rules(new(big.Int))
)
// ChainConfig is the core config which determines the blockchain settings.
diff --git a/params/config_test.go b/params/config_test.go
index 487dc380c..02c5fe291 100644
--- a/params/config_test.go
+++ b/params/config_test.go
@@ -29,8 +29,8 @@ func TestCheckCompatible(t *testing.T) {
wantErr *ConfigCompatError
}
tests := []test{
- {stored: AllProtocolChanges, new: AllProtocolChanges, head: 0, wantErr: nil},
- {stored: AllProtocolChanges, new: AllProtocolChanges, head: 100, wantErr: nil},
+ {stored: AllEthashProtocolChanges, new: AllEthashProtocolChanges, head: 0, wantErr: nil},
+ {stored: AllEthashProtocolChanges, new: AllEthashProtocolChanges, head: 100, wantErr: nil},
{
stored: &ChainConfig{EIP150Block: big.NewInt(10)},
new: &ChainConfig{EIP150Block: big.NewInt(20)},
@@ -38,7 +38,7 @@ func TestCheckCompatible(t *testing.T) {
wantErr: nil,
},
{
- stored: AllProtocolChanges,
+ stored: AllEthashProtocolChanges,
new: &ChainConfig{HomesteadBlock: nil},
head: 3,
wantErr: &ConfigCompatError{
@@ -49,7 +49,7 @@ func TestCheckCompatible(t *testing.T) {
},
},
{
- stored: AllProtocolChanges,
+ stored: AllEthashProtocolChanges,
new: &ChainConfig{HomesteadBlock: big.NewInt(1)},
head: 3,
wantErr: &ConfigCompatError{
diff --git a/params/version.go b/params/version.go
index 1abbae98a..32d4a2e23 100644
--- a/params/version.go
+++ b/params/version.go
@@ -22,8 +22,8 @@ import (
const (
VersionMajor = 1 // Major version component of the current release
- VersionMinor = 7 // Minor version component of the current release
- VersionPatch = 2 // Patch version component of the current release
+ VersionMinor = 8 // Minor version component of the current release
+ VersionPatch = 0 // Patch version component of the current release
VersionMeta = "unstable" // Version metadata to append to the version string
)