aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/miner_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-07-06 19:08:08 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 17:30:11 +0800
commitceb0739ba111215d47cc2ff9d80d542fa26d764a (patch)
tree40b718f79285c839219571a9bc575314814bdccc /rpc/api/miner_js.go
parent6ea28f93b99dff66471a04d24632440d6f4099db (diff)
downloaddexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.gz
dexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.tar.zst
dexon-ceb0739ba111215d47cc2ff9d80d542fa26d764a.zip
fixed web3 formatters mismatch
Diffstat (limited to 'rpc/api/miner_js.go')
-rw-r--r--rpc/api/miner_js.go21
1 files changed, 7 insertions, 14 deletions
diff --git a/rpc/api/miner_js.go b/rpc/api/miner_js.go
index 6290368da..6474166e7 100644
--- a/rpc/api/miner_js.go
+++ b/rpc/api/miner_js.go
@@ -9,50 +9,43 @@ web3._extend({
name: 'start',
call: 'miner_start',
params: 1,
- inputFormatter: [web3._extend.formatters.formatInputInt],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: [null]
}),
new web3._extend.Method({
name: 'stop',
call: 'miner_stop',
params: 1,
- inputFormatter: [web3._extend.formatters.formatInputInt],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: [null]
}),
new web3._extend.Method({
name: 'setExtra',
call: 'miner_setExtra',
params: 1,
- inputFormatter: [web3._extend.utils.formatInputString],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: [null]
}),
new web3._extend.Method({
name: 'setGasPrice',
call: 'miner_setGasPrice',
params: 1,
- inputFormatter: [web3._extend.utils.formatInputString],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: [null]
}),
new web3._extend.Method({
name: 'startAutoDAG',
call: 'miner_startAutoDAG',
params: 0,
- inputFormatter: [],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: []
}),
new web3._extend.Method({
name: 'stopAutoDAG',
call: 'miner_stopAutoDAG',
params: 0,
- inputFormatter: [],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: []
}),
new web3._extend.Method({
name: 'makeDAG',
call: 'miner_makeDAG',
params: 1,
- inputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter],
- outputFormatter: web3._extend.formatters.formatOutputBool
+ inputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter]
})
],
properties: