forked from cerc-io/plugeth
add missing method to api/admin
This commit is contained in:
parent
2739233719
commit
6391ec0c8f
@ -43,6 +43,7 @@ var (
|
||||
"admin_datadir": (*adminApi).DataDir,
|
||||
"admin_startRPC": (*adminApi).StartRPC,
|
||||
"admin_stopRPC": (*adminApi).StopRPC,
|
||||
"admin_sleepBlocks": (*adminApi).SleepBlocks,
|
||||
"admin_setGlobalRegistrar": (*adminApi).SetGlobalRegistrar,
|
||||
"admin_setHashReg": (*adminApi).SetHashReg,
|
||||
"admin_setUrlHint": (*adminApi).SetUrlHint,
|
||||
|
@ -26,6 +26,13 @@ web3._extend({
|
||||
inputFormatter: [web3._extend.utils.formatInputString],
|
||||
outputFormatter: function(obj) { return obj; }
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'sleepBlocks',
|
||||
call: 'admin_sleepBlocks',
|
||||
params: 2,
|
||||
inputFormatter: [web3._extend.utils.formatInputInt,web3._extend.utils.formatInputInt],
|
||||
outputFormatter: web3._extend.formatters.formatOutputInt
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'verbosity',
|
||||
call: 'admin_verbosity',
|
||||
@ -68,6 +75,13 @@ web3._extend({
|
||||
inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString],
|
||||
outputFormatter: web3._extend.formatters.formatOutputString
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'setUrlHint',
|
||||
call: 'admin_setUrlHint',
|
||||
params: 2,
|
||||
inputFormatter: [web3._extend.utils.formatInputString,web3._extend.utils.formatInputString],
|
||||
outputFormatter: web3._extend.formatters.formatOutputString
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'saveInfo',
|
||||
call: 'admin_saveInfo',
|
||||
@ -90,14 +104,14 @@ web3._extend({
|
||||
outputFormatter: web3._extend.formatters.formatOutputBool
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'StartNatSpec',
|
||||
name: 'startNatSpec',
|
||||
call: 'admin_startNatSpec',
|
||||
params: 0,
|
||||
inputFormatter: [],
|
||||
outputFormatter: web3._extend.formatters.formatOutputBool
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'StopNatSpec',
|
||||
name: 'stopNatSpec',
|
||||
call: 'admin_stopNatSpec',
|
||||
params: 0,
|
||||
inputFormatter: [],
|
||||
|
Loading…
Reference in New Issue
Block a user