aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-30 12:35:33 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:19 +0800
commit2777a457ba570455ef9641faf33f59852ea93d9e (patch)
tree348c23a0c439182d67a54da199626b1d61f8c9ff /dex
parent4f9c54893e6eb06dd32c509137fc682cc7b1ab84 (diff)
downloadgo-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar.gz
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar.bz2
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar.lz
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar.xz
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.tar.zst
go-tangerine-2777a457ba570455ef9641faf33f59852ea93d9e.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()