aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorBJ4 <bojie@dexon.org>2018-11-09 12:08:17 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89 (patch)
treef9711f1d34062c5a047c1bec291cf02539521b93 /dex
parent9705ed77f413fcd64a8024095c91b28fb5f3d20e (diff)
downloaddexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar.gz
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar.bz2
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar.lz
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar.xz
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.tar.zst
dexon-2bc760c1e23e18bfe3807e3e4d0b9cb6c028cf89.zip
app: fix core test
Diffstat (limited to 'dex')
-rw-r--r--dex/backend.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go
index e55733aa4..ea35f836c 100644
--- a/dex/backend.go
+++ b/dex/backend.go
@@ -134,7 +134,8 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) {
}
cacheConfig = &core.CacheConfig{Disabled: config.NoPruning, TrieCleanLimit: config.TrieCleanCache, TrieDirtyLimit: config.TrieDirtyCache, TrieTimeLimit: config.TrieTimeout}
)
- dex.blockchain, err = core.NewBlockChain(chainDb, cacheConfig, dex.chainConfig, dex.engine, vmConfig, nil)
+ dex.blockchain, err = core.NewBlockChainWithDexonValidator(chainDb, cacheConfig,
+ dex.chainConfig, dex.engine, vmConfig, nil)
// Rewind the chain in case of an incompatible config upgrade.
if compat, ok := genesisErr.(*params.ConfigCompatError); ok {