diff options
author | Sonic <sonic@dexon.org> | 2018-11-30 12:35:33 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | be774436c1663735dca75a46d9c9c77e6a93b710 (patch) | |
tree | 3514f18a03c1e72ceb3d7ae2d43fdbfea28b5fcd /dex | |
parent | 06ddd3aac64243712df7fefa0483d3f7e6f96b73 (diff) | |
download | dexon-be774436c1663735dca75a46d9c9c77e6a93b710.tar.gz dexon-be774436c1663735dca75a46d9c9c77e6a93b710.tar.zst dexon-be774436c1663735dca75a46d9c9c77e6a93b710.zip |
dex: verify header that imported from fetcher (#68)
Diffstat (limited to 'dex')
-rw-r--r-- | dex/handler.go | 2 |
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() |