aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-30 12:35:33 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:58 +0800
commite1b413db2256ad0070697970910b72405216758a (patch)
tree392f312e84ff1faae8ce98e3b64a20aa7e96dbdf /dex
parenta1da9e0801c52ff9da3855fc4679cf7f15080d3a (diff)
downloaddexon-e1b413db2256ad0070697970910b72405216758a.tar
dexon-e1b413db2256ad0070697970910b72405216758a.tar.gz
dexon-e1b413db2256ad0070697970910b72405216758a.tar.bz2
dexon-e1b413db2256ad0070697970910b72405216758a.tar.lz
dexon-e1b413db2256ad0070697970910b72405216758a.tar.xz
dexon-e1b413db2256ad0070697970910b72405216758a.tar.zst
dexon-e1b413db2256ad0070697970910b72405216758a.zip
dex: verify header that imported from fetcher (#68)
Diffstat (limited to 'dex')
-rw-r--r--dex/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/handler.go b/dex/handler.go
index b6a75d2fd..5cdff5d0c 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -208,7 +208,7 @@ func NewProtocolManager(
manager.downloader = downloader.New(mode, chaindb, manager.eventMux, blockchain, nil, manager.removePeer)
validator := func(header *types.Header) error {
- return engine.VerifyHeader(blockchain, header, true)
+ return blockchain.VerifyDexonHeader(header)
}
heighter := func() uint64 {
return blockchain.CurrentBlock().NumberU64()