aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-09-17 05:21:12 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-09-17 05:21:12 +0800
commit58fbcaa750aaa51d349ef28d98b58c9a0cfeee31 (patch)
treecd35b0006f976fa3f88910e70abdc1c4d1638ffc /eth
parent985b5f29ed18eac6a36d569edbde6dcfde8d1ab0 (diff)
parent821619e1c356df092f2d82cea0d98996765f3933 (diff)
downloaddexon-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.gz
dexon-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.tar.zst
dexon-58fbcaa750aaa51d349ef28d98b58c9a0cfeee31.zip
Merge pull request #1810 from karalabe/pure-header-verifications-2
core, eth, miner: use pure header validation
Diffstat (limited to 'eth')
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 0a06ea335..52c9c4151 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -119,7 +119,7 @@ func NewProtocolManager(networkId int, mux *event.TypeMux, txpool txPool, pow po
manager.downloader = downloader.New(manager.eventMux, manager.chainman.HasBlock, manager.chainman.GetBlock, manager.chainman.CurrentBlock, manager.chainman.GetTd, manager.chainman.InsertChain, manager.removePeer)
validator := func(block *types.Block, parent *types.Block) error {
- return core.ValidateHeader(pow, block.Header(), parent, true, false)
+ return core.ValidateHeader(pow, block.Header(), parent.Header(), true, false)
}
heighter := func() uint64 {
return manager.chainman.CurrentBlock().NumberU64()