diff options
author | Felix Lange <fjl@twurst.com> | 2016-01-21 20:36:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-01-21 20:37:38 +0800 |
commit | e4d794851b713b5a22147c570963ff76ec26c7d0 (patch) | |
tree | cd1820c20dd39203567454ec669482636a85ddbb /rpc/api/admin_args.go | |
parent | 0edcbc797f9ecf3d757b4ffcf1844a2ba8ec72ef (diff) | |
download | go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar.gz go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar.bz2 go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar.lz go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar.xz go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.tar.zst go-tangerine-e4d794851b713b5a22147c570963ff76ec26c7d0.zip |
node, rpc/api: add debug_vmodule, move admin_verbosity to debug_verbosity
Diffstat (limited to 'rpc/api/admin_args.go')
-rw-r--r-- | rpc/api/admin_args.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/rpc/api/admin_args.go b/rpc/api/admin_args.go index e3a2f72bf..e09597ad4 100644 --- a/rpc/api/admin_args.go +++ b/rpc/api/admin_args.go @@ -69,28 +69,6 @@ func (args *ImportExportChainArgs) UnmarshalJSON(b []byte) (err error) { return nil } -type VerbosityArgs struct { - Level int -} - -func (args *VerbosityArgs) UnmarshalJSON(b []byte) (err error) { - var obj []interface{} - if err := json.Unmarshal(b, &obj); err != nil { - return shared.NewDecodeParamError(err.Error()) - } - - if len(obj) != 1 { - return shared.NewDecodeParamError("Expected enode as argument") - } - - level, err := numString(obj[0]) - if err == nil { - args.Level = int(level.Int64()) - } - - return nil -} - type SetSolcArgs struct { Path string } |