Browse Source

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.
Felix Lange 9 years ago
parent
commit
0c9a858f2d
1 changed files with 0 additions and 3 deletions
  1. 0 3
      eth/handler.go

+ 0 - 3
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