rpc: drop useless cases from server

Let them be handled by `default` statement returning a proper error instead of
plaintext message.
This commit is contained in:
Roman Khimov 2019-10-29 16:48:14 +03:00
parent 2b3fb14a4a
commit 3d6cf3a647

View file

@ -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 {