Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
7e6c1f80
Commit
7e6c1f80
authored
Jul 06, 2015
by
Bas van Kervel
Committed by
Jeffrey Wilcke
Jul 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected input formatters as suggested during review
parent
ceb0739b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
24 deletions
+4
-24
admin_js.go
rpc/api/admin_js.go
+2
-2
eth_js.go
rpc/api/eth_js.go
+1
-1
miner_js.go
rpc/api/miner_js.go
+1
-1
net.go
rpc/api/net.go
+0
-10
net_js.go
rpc/api/net_js.go
+0
-8
utils.go
rpc/api/utils.go
+0
-2
No files found.
rpc/api/admin_js.go
View file @
7e6c1f80
...
@@ -34,7 +34,7 @@ web3._extend({
...
@@ -34,7 +34,7 @@ web3._extend({
name: 'verbosity',
name: 'verbosity',
call: 'admin_verbosity',
call: 'admin_verbosity',
params: 1,
params: 1,
inputFormatter: [web3._extend.utils.
to
Decimal]
inputFormatter: [web3._extend.utils.
from
Decimal]
}),
}),
new web3._extend.Method({
new web3._extend.Method({
name: 'setSolc',
name: 'setSolc',
...
@@ -46,7 +46,7 @@ web3._extend({
...
@@ -46,7 +46,7 @@ web3._extend({
name: 'startRPC',
name: 'startRPC',
call: 'admin_startRPC',
call: 'admin_startRPC',
params: 4,
params: 4,
inputFormatter: [null,
web3._extend.utils.toDecima
l, null, null]
inputFormatter: [null,
nul
l, null, null]
}),
}),
new web3._extend.Method({
new web3._extend.Method({
name: 'stopRPC',
name: 'stopRPC',
...
...
rpc/api/eth_js.go
View file @
7e6c1f80
...
@@ -18,7 +18,7 @@ web3._extend({
...
@@ -18,7 +18,7 @@ web3._extend({
name: 'resend',
name: 'resend',
call: 'eth_resend',
call: 'eth_resend',
params: 3,
params: 3,
inputFormatter: [
null, null, nul
l]
inputFormatter: [
web3._extend.formatters.inputTransactionFormatter, web3._extend.utils.fromDecimal, web3._extend.utils.fromDecima
l]
})
})
],
],
properties:
properties:
...
...
rpc/api/miner_js.go
View file @
7e6c1f80
...
@@ -27,7 +27,7 @@ web3._extend({
...
@@ -27,7 +27,7 @@ web3._extend({
name: 'setGasPrice',
name: 'setGasPrice',
call: 'miner_setGasPrice',
call: 'miner_setGasPrice',
params: 1,
params: 1,
inputFormatter: [
nul
l]
inputFormatter: [
web3._extend.utils.fromDecia
l]
}),
}),
new web3._extend.Method({
new web3._extend.Method({
name: 'startAutoDAG',
name: 'startAutoDAG',
...
...
rpc/api/net.go
View file @
7e6c1f80
...
@@ -14,10 +14,8 @@ const (
...
@@ -14,10 +14,8 @@ const (
var
(
var
(
// mapping between methods and handlers
// mapping between methods and handlers
netMapping
=
map
[
string
]
nethandler
{
netMapping
=
map
[
string
]
nethandler
{
"net_version"
:
(
*
netApi
)
.
Version
,
"net_peerCount"
:
(
*
netApi
)
.
PeerCount
,
"net_peerCount"
:
(
*
netApi
)
.
PeerCount
,
"net_listening"
:
(
*
netApi
)
.
IsListening
,
"net_listening"
:
(
*
netApi
)
.
IsListening
,
"net_peers"
:
(
*
netApi
)
.
Peers
,
}
}
)
)
...
@@ -70,11 +68,6 @@ func (self *netApi) ApiVersion() string {
...
@@ -70,11 +68,6 @@ func (self *netApi) ApiVersion() string {
return
NetApiVersion
return
NetApiVersion
}
}
// Network version
func
(
self
*
netApi
)
Version
(
req
*
shared
.
Request
)
(
interface
{},
error
)
{
return
self
.
xeth
.
NetworkVersion
(),
nil
}
// Number of connected peers
// Number of connected peers
func
(
self
*
netApi
)
PeerCount
(
req
*
shared
.
Request
)
(
interface
{},
error
)
{
func
(
self
*
netApi
)
PeerCount
(
req
*
shared
.
Request
)
(
interface
{},
error
)
{
return
newHexNum
(
self
.
xeth
.
PeerCount
()),
nil
return
newHexNum
(
self
.
xeth
.
PeerCount
()),
nil
...
@@ -84,6 +77,3 @@ func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {
...
@@ -84,6 +77,3 @@ func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {
return
self
.
xeth
.
IsListening
(),
nil
return
self
.
xeth
.
IsListening
(),
nil
}
}
func
(
self
*
netApi
)
Peers
(
req
*
shared
.
Request
)
(
interface
{},
error
)
{
return
self
.
ethereum
.
PeersInfo
(),
nil
}
rpc/api/net_js.go
View file @
7e6c1f80
...
@@ -14,14 +14,6 @@ web3._extend({
...
@@ -14,14 +14,6 @@ web3._extend({
],
],
properties:
properties:
[
[
new web3._extend.Property({
name: 'peers',
getter: 'net_peers'
}),
new web3._extend.Property({
name: 'version',
getter: 'net_version'
})
]
]
});
});
`
`
rpc/api/utils.go
View file @
7e6c1f80
...
@@ -91,8 +91,6 @@ var (
...
@@ -91,8 +91,6 @@ var (
"net"
:
[]
string
{
"net"
:
[]
string
{
"peerCount"
,
"peerCount"
,
"listening"
,
"listening"
,
"version"
,
"peers"
,
},
},
"personal"
:
[]
string
{
"personal"
:
[]
string
{
"listAccounts"
,
"listAccounts"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment