aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-12-29 20:01:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-01-04 22:27:23 +0800
commit9e011ff1cd7fe060e106608d0823e48431ef12e9 (patch)
treeed17707f94d73f16bec16d97cd368590d38096bb /eth/handler.go
parent36137623edc18c086815b653b2eb0291579ffd22 (diff)
downloadgo-tangerine-9e011ff1cd7fe060e106608d0823e48431ef12e9.tar.gz
go-tangerine-9e011ff1cd7fe060e106608d0823e48431ef12e9.tar.zst
go-tangerine-9e011ff1cd7fe060e106608d0823e48431ef12e9.zip
core, eth/downloader: ensure state presence in ancestor lookup
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/eth/handler.go b/eth/handler.go
index d04f79105..108a6679c 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -138,9 +138,10 @@ func NewProtocolManager(fastSync bool, networkId int, mux *event.TypeMux, txpool
return nil, errIncompatibleConfig
}
// Construct the different synchronisation mechanisms
- manager.downloader = downloader.New(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, blockchain.Rollback, manager.removePeer)
+ manager.downloader = downloader.New(chaindb, manager.eventMux, blockchain.HasHeader, blockchain.HasBlockAndState, blockchain.GetHeader,
+ blockchain.GetBlock, blockchain.CurrentHeader, blockchain.CurrentBlock, blockchain.CurrentFastBlock, blockchain.FastSyncCommitHead,
+ 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)