aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-15 13:29:48 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit3739c30a78860421f8db52a58f1644eeeaf7fe4c (patch)
treef32a6418e27ebf3cc983576db78482010760444c /params
parent9d6136f800d76956c424449185a39c936f8284be (diff)
downloaddexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar.gz
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar.bz2
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar.lz
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar.xz
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.tar.zst
dexon-3739c30a78860421f8db52a58f1644eeeaf7fe4c.zip
core: fix tests
Diffstat (limited to 'params')
-rw-r--r--params/config.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/params/config.go b/params/config.go
index 6c40f2154..a64dc48be 100644
--- a/params/config.go
+++ b/params/config.go
@@ -26,8 +26,8 @@ import (
// Genesis hashes to enforce below configs on.
var (
- MainnetGenesisHash = common.HexToHash("0xc333fc9bcbb59ad2646fff9fd253559b144340bd27a3851cc7737ff73e405e91")
- TestnetGenesisHash = common.HexToHash("0x744c925a373bbbc4b46adf0e925f1cd06d587e89bc9db8260b2163238cd980ef")
+ MainnetGenesisHash = common.HexToHash("0x52b1459248252fcec3e9429362bdbc576c09515cfac0a87b278b2bf98d640c42")
+ TestnetGenesisHash = common.HexToHash("0x868521018a07ea7ccd1f0ca4f6e554b832187add550f9b2ac55664bd96ff264d")
)
var (
@@ -142,7 +142,7 @@ var (
//
// 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), big.NewInt(0), nil, new(EthashConfig), nil, new(DexconConfig)}
+ AllEthashProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, nil}
// AllCliqueProtocolChanges contains every protocol change (EIPs) introduced
// and accepted by the Ethereum core developers into the Clique consensus.
@@ -151,6 +151,8 @@ var (
// 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), big.NewInt(0), nil, nil, &CliqueConfig{Period: 0, Epoch: 30000}, nil}
+ AllDexconProtocolChanges = &ChainConfig{big.NewInt(1337), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, nil, nil, new(DexconConfig)}
+
TestChainConfig = &ChainConfig{big.NewInt(1), big.NewInt(0), nil, false, big.NewInt(0), common.Hash{}, big.NewInt(0), big.NewInt(0), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, nil}
TestRules = TestChainConfig.Rules(new(big.Int))
)