aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-10-09 21:21:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-10-19 15:03:10 +0800
commita9d8dfc8e77330412b1f21e25a69b96d59567e36 (patch)
treeff4e6b4dbf34ba4b3aab0672adddbce764c855e4 /eth/handler.go
parentb97e34a8e4d06b315cc495819ba6612f89dec54f (diff)
downloaddexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar.gz
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar.bz2
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar.lz
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar.xz
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.tar.zst
dexon-a9d8dfc8e77330412b1f21e25a69b96d59567e36.zip
core, eth: roll back uncertain headers in failed fast syncs
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go
index b0916d50b..40a578842 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -131,7 +131,7 @@ func NewProtocolManager(mode Mode, networkId int, mux *event.TypeMux, txpool txP
}
manager.downloader = downloader.New(syncMode, chaindb, manager.eventMux, blockchain.HasHeader, blockchain.HasBlock, blockchain.GetHeader,
blockchain.GetBlock, blockchain.CurrentHeader, blockchain.CurrentBlock, blockchain.CurrentFastBlock, blockchain.FastSyncCommitHead,
- blockchain.GetTd, blockchain.InsertHeaderChain, blockchain.InsertChain, blockchain.InsertReceiptChain, manager.removePeer)
+ blockchain.GetTd, blockchain.InsertHeaderChain, blockchain.InsertChain, blockchain.InsertReceiptChain, blockchain.Rollback, manager.removePeer)
validator := func(block *types.Block, parent *types.Block) error {
return core.ValidateHeader(pow, block.Header(), parent.Header(), true, false)