aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/blockchain.go4
-rw-r--r--dex/handler.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 30552471a..878ed0a56 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1734,6 +1734,10 @@ func (bc *BlockChain) insertDexonChain(chain types.Blocks) (int, []interface{},
return 0, events, coalescedLogs, nil
}
+func (bc *BlockChain) VerifyDexonHeader(header *types.Header) error {
+ return bc.hc.verifyTSig(header, bc.verifierCache)
+}
+
func (bc *BlockChain) ProcessPendingBlock(block *types.Block, witness *coreTypes.Witness) (*common.Hash, error) {
n, events, logs, err := bc.processPendingBlock(block, witness)
bc.PostChainEvents(events, logs)
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()