aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-08-25 21:20:38 +0800
committerGitHub <noreply@github.com>2016-08-25 21:20:38 +0800
commit5fc032a9d16ac6ea1dc020f06e44c24c94a361a7 (patch)
tree363e7e1a3439424e00a4e7e72a701b97f737e6aa /eth/handler.go
parent806e3cd0751e7769bddbb2d4250b4520d912df42 (diff)
parentc97df052a96820742fffdbb3ef5e77dbf1397637 (diff)
downloadgo-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.gz
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.bz2
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.lz
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.xz
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.tar.zst
go-tangerine-5fc032a9d16ac6ea1dc020f06e44c24c94a361a7.zip
Merge pull request #2930 from fjl/ethclient
Stable Go API, part 1
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 886d89fd1..570c79dac 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -634,9 +634,6 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
if err := msg.Decode(&request); err != nil {
return errResp(ErrDecode, "%v: %v", msg, err)
}
- if err := request.Block.ValidateFields(); err != nil {
- return errResp(ErrDecode, "block validation %v: %v", msg, err)
- }
request.Block.ReceivedAt = msg.ReceivedAt
request.Block.ReceivedFrom = p