aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <aitjcize@gmail.com>2018-11-09 14:16:18 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitac00945cd81dd0341cebdc10abd74163445ea7b2 (patch)
treee5ff5b65fecedac9f137f58a5107e84085b9c88a
parent0d604d682e3642da4a06dfdce9a0215574501502 (diff)
downloaddexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar.gz
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar.bz2
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar.lz
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar.xz
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.tar.zst
dexon-ac00945cd81dd0341cebdc10abd74163445ea7b2.zip
core: blockchain: fix NewBlockChainWithDexonValidator (#4)
-rw-r--r--core/blockchain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 2907ba1ad..b2a52f931 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -279,7 +279,7 @@ func NewBlockChainWithDexonValidator(db ethdb.Database, cacheConfig *CacheConfig
addressCounter: make(map[uint32]map[common.Address]uint64),
chainLastHeight: make(map[uint32]uint64),
}
- bc.SetValidator(NewBlockValidator(chainConfig, bc, engine))
+ bc.SetValidator(NewDexonBlockValidator(chainConfig, bc, engine))
bc.SetProcessor(NewStateProcessor(chainConfig, bc, engine))
var err error