diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-16 15:44:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-09-16 15:46:28 +0800 |
commit | 821619e1c356df092f2d82cea0d98996765f3933 (patch) | |
tree | 6b7b637c41f6f20c2c78ab484cf37ed5e2c58f97 /eth | |
parent | e9a80518c72e0d5b2da7246a865f4dc4baab2cf9 (diff) | |
download | go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.gz go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.tar.zst go-tangerine-821619e1c356df092f2d82cea0d98996765f3933.zip |
core, eth, miner: use pure header validation
Diffstat (limited to 'eth')
-rw-r--r-- | eth/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go index 4aef69043..77fe09e8f 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -118,7 +118,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() |