aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorBJ4 <bojie@dexon.org>2018-11-09 12:08:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit3911752697b6718fd8014146776378c465a8e88e (patch)
treeaddb109dae061bf4fdc8078522b1be2374c57f2b /params
parentbfe8dc4f017f1fa3e6e2b0c370f7880ef847a7d4 (diff)
downloadgo-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar.gz
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar.bz2
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar.lz
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar.xz
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.tar.zst
go-tangerine-3911752697b6718fd8014146776378c465a8e88e.zip
app: fix core test
Diffstat (limited to 'params')
-rw-r--r--params/config.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/params/config.go b/params/config.go
index 744be496b..9c7e53afd 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("0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3")
- TestnetGenesisHash = common.HexToHash("0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d")
+ MainnetGenesisHash = common.HexToHash("0xc333fc9bcbb59ad2646fff9fd253559b144340bd27a3851cc7737ff73e405e91")
+ TestnetGenesisHash = common.HexToHash("0x744c925a373bbbc4b46adf0e925f1cd06d587e89bc9db8260b2163238cd980ef")
)
// TrustedCheckpoints associates each known checkpoint with the genesis hash of
@@ -120,7 +120,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), big.NewInt(0), nil, new(EthashConfig), nil, nil}
+ 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), big.NewInt(0), nil, new(EthashConfig), nil, new(DexconConfig)}
// AllCliqueProtocolChanges contains every protocol change (EIPs) introduced
// and accepted by the Ethereum core developers into the Clique consensus.
@@ -129,7 +129,7 @@ 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), big.NewInt(0), nil, nil, &CliqueConfig{Period: 0, Epoch: 30000}, 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), big.NewInt(0), big.NewInt(0), nil, new(EthashConfig), nil, &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), big.NewInt(0), nil, new(EthashConfig), nil, TestnetChainConfig.Dexcon}
TestRules = TestChainConfig.Rules(new(big.Int))
)
@@ -395,6 +395,7 @@ func isForked(s, head *big.Int) bool {
if s == nil || head == nil {
return false
}
+
return s.Cmp(head) <= 0
}