Remove support for compiling serpent
This commit is contained in:
		
							
								
								
									
										18
									
								
								rpc/api.go
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								rpc/api.go
									
									
									
									
									
								
							@@ -339,20 +339,11 @@ func (p *EthereumApi) GetData(args *GetDataArgs, reply *interface{}) error {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (p *EthereumApi) GetCompilers(reply *interface{}) error {
 | 
					func (p *EthereumApi) GetCompilers(reply *interface{}) error {
 | 
				
			||||||
	c := []string{"serpent"}
 | 
						c := []string{""}
 | 
				
			||||||
	*reply = c
 | 
						*reply = c
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (p *EthereumApi) CompileSerpent(args *CompileArgs, reply *interface{}) error {
 | 
					 | 
				
			||||||
	res, err := ethutil.Compile(args.Source, false)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	*reply = res
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (p *EthereumApi) DbPut(args *DbArgs, reply *interface{}) error {
 | 
					func (p *EthereumApi) DbPut(args *DbArgs, reply *interface{}) error {
 | 
				
			||||||
	if err := args.requirements(); err != nil {
 | 
						if err := args.requirements(); err != nil {
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
@@ -528,13 +519,8 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
 | 
				
			|||||||
		return p.GetCompilers(reply)
 | 
							return p.GetCompilers(reply)
 | 
				
			||||||
	case "eth_compileSolidity":
 | 
						case "eth_compileSolidity":
 | 
				
			||||||
	case "eth_compileLLL":
 | 
						case "eth_compileLLL":
 | 
				
			||||||
		return errNotImplemented
 | 
					 | 
				
			||||||
	case "eth_compileSerpent":
 | 
						case "eth_compileSerpent":
 | 
				
			||||||
		args := new(CompileArgs)
 | 
							return errNotImplemented
 | 
				
			||||||
		if err := json.Unmarshal(req.Params, &args); err != nil {
 | 
					 | 
				
			||||||
			return err
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		return p.CompileSerpent(args, reply)
 | 
					 | 
				
			||||||
	case "eth_newFilter":
 | 
						case "eth_newFilter":
 | 
				
			||||||
		args := new(FilterOptions)
 | 
							args := new(FilterOptions)
 | 
				
			||||||
		if err := json.Unmarshal(req.Params, &args); err != nil {
 | 
							if err := json.Unmarshal(req.Params, &args); err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user