From 9d8b455d62d851d265a8383a5d34e9c594ff89c9 Mon Sep 17 00:00:00 2001 From: Sonic Date: Wed, 21 Nov 2018 13:37:16 +0800 Subject: core, dex, dex/downloader: restore insertChain to upstream version Also rename InsertChain2, insertChain2, InsertHeaderChain2, ValidateHeaderChain2 --- dex/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dex/handler.go') diff --git a/dex/handler.go b/dex/handler.go index 0c7a3e919..a86a68329 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -221,7 +221,7 @@ func NewProtocolManager( return 0, nil } atomic.StoreUint32(&manager.acceptTxs, 1) // Mark initial sync done on any fetcher import - return manager.blockchain.InsertChain2(blocks) + return manager.blockchain.InsertDexonChain(blocks) } manager.fetcher = fetcher.New(blockchain.GetBlockByHash, validator, manager.BroadcastBlock, heighter, inserter, manager.removePeer) -- cgit