code: func (r *CodeRequest) Validate(db ethdb.Database, msg *Msg) error {
  	log.Debug("Validating code data", "hash", r.Hash)
  
  	// Ensure we have a correct message with a single code element
  	if msg.MsgType != MsgCode {
  		return errInvalidMessageType
  	}
  	reply := msg.Obj.([][]byte)
  	if len(reply) != 1 {
  		return errInvalidEntryCount
  	}
  	data := reply[0]
  
  	// Verify the data and store if checks out
  	if hash := crypto.Keccak256Hash(data); r.Hash != hash {
  		return errDataHashMismatch
  	}
  	r.Data = data
  	return nil
  }
docs: // Valid processes an ODR request reply message from the LES network
  // returns true and stores results in memory if the message was a valid reply
  // to the request (implementation of LesOdrRequest)