From 3d6cf3a64717a4284b82cc5f082bb41cfcfd3d2e Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 29 Oct 2019 16:48:14 +0300 Subject: [PATCH] rpc: drop useless cases from server Let them be handled by `default` statement returning a proper error instead of plaintext message. --- pkg/rpc/server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/rpc/server.go b/pkg/rpc/server.go index f3bf7d344..7f48848e3 100644 --- a/pkg/rpc/server.go +++ b/pkg/rpc/server.go @@ -185,10 +185,6 @@ Methods: results = peers - case "getblocksysfee", "getcontractstate", "getrawmempool", "getstorage", "submitblock", "gettxout", "invoke", "invokefunction", "invokescript": - - results = "TODO" - case "validateaddress": param, err := reqParams.Value(0) if err != nil {