diff options
Diffstat (limited to 'rpc/api/admin_js.go')
-rw-r--r-- | rpc/api/admin_js.go | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/rpc/api/admin_js.go b/rpc/api/admin_js.go index 6255a6c7b..c3e713c67 100644 --- a/rpc/api/admin_js.go +++ b/rpc/api/admin_js.go @@ -13,13 +13,6 @@ web3._extend({ outputFormatter: web3._extend.formatters.formatOutputBool }), new web3._extend.Method({ - name: 'peers', - call: 'admin_peers', - params: 0, - inputFormatter: [], - outputFormatter: function(obj) { return obj; } - }), - new web3._extend.Method({ name: 'exportChain', call: 'admin_exportChain', params: 1, @@ -41,13 +34,6 @@ web3._extend({ outputFormatter: web3._extend.formatters.formatOutputBool }), new web3._extend.Method({ - name: 'syncStatus', - call: 'admin_syncStatus', - params: 1, - inputFormatter: [web3._extend.utils.formatInputInt], - outputFormatter: function(obj) { return obj; } - }), - new web3._extend.Method({ name: 'setSolc', call: 'admin_setSolc', params: 1, @@ -61,6 +47,21 @@ web3._extend({ name: 'nodeInfo', getter: 'admin_nodeInfo', outputFormatter: web3._extend.formatters.formatOutputString + }), + new web3._extend.Property({ + name: 'peers', + getter: 'admin_peers', + outputFormatter: function(obj) { return obj; } + }), + new web3._extend.Property({ + name: 'datadir', + getter: 'admin_datadir', + outputFormatter: web3._extend.formatters.formatOutputString + }), + new web3._extend.Property({ + name: 'chainSyncStatus', + getter: 'admin_chainSyncStatus', + outputFormatter: function(obj) { return obj; } }) ] }); |