From 27152fddcbbefe155ea8d2ead63fe61b2682ffad Mon Sep 17 00:00:00 2001 From: Sonic Date: Fri, 30 Nov 2018 12:35:33 +0800 Subject: dex: verify header that imported from fetcher (#68) --- core/blockchain.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/blockchain.go b/core/blockchain.go index 625bf7e3a..b22da28ab 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) -- cgit v1.2.3