diff options
author | Sonic <sonic@dexon.org> | 2018-11-30 12:35:33 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | 27152fddcbbefe155ea8d2ead63fe61b2682ffad (patch) | |
tree | dc8c79e19e2206d74e076efd1cdb534da8c65c55 /core | |
parent | 5311202cec7c77f95ccb18c657e466f9cdaf1e8c (diff) | |
download | dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.gz dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.bz2 dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.lz dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.xz dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.tar.zst dexon-27152fddcbbefe155ea8d2ead63fe61b2682ffad.zip |
dex: verify header that imported from fetcher (#68)
Diffstat (limited to 'core')
-rw-r--r-- | core/blockchain.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) |