aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
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 21:32:54 +0800
commit27152fddcbbefe155ea8d2ead63fe61b2682ffad (patch)
treedc8c79e19e2206d74e076efd1cdb534da8c65c55 /dex/handler.go
parent5311202cec7c77f95ccb18c657e466f9cdaf1e8c (diff)
downloaddexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.gz
dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.zst
dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.zip
dex: verify header that imported from fetcher (#68)
Diffstat (limited to 'dex/handler.go')
-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()