diff options
author | Felix Lange <fjl@twurst.com> | 2016-08-04 09:30:05 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-08-04 09:30:05 +0800 |
commit | 0c9a858f2d8094d48371deee97493a1b1412e7de (patch) | |
tree | 0fd079c73776543ce2e11921f955bfebffa2b6e1 /eth | |
parent | 806e3cd0751e7769bddbb2d4250b4520d912df42 (diff) | |
download | go-tangerine-0c9a858f2d8094d48371deee97493a1b1412e7de.tar.gz go-tangerine-0c9a858f2d8094d48371deee97493a1b1412e7de.tar.zst go-tangerine-0c9a858f2d8094d48371deee97493a1b1412e7de.zip |
eth: don't call ValidateFields
ValidateFields was introduced before the rlp decoder disallowed nil
values. Decoding RLP will never return nil values, there is no need
to check for them.
Diffstat (limited to 'eth')
-rw-r--r-- | eth/handler.go | 3 |
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 |