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
e84f3ec1
Commit
e84f3ec1
authored
Jul 08, 2015
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added net.version
parent
a2333bcb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
pp_js.go
jsre/pp_js.go
+1
-1
net.go
rpc/api/net.go
+5
-0
net_js.go
rpc/api/net_js.go
+4
-0
txpool_js.go
rpc/api/txpool_js.go
+1
-2
No files found.
jsre/pp_js.go
View file @
e84f3ec1
...
...
@@ -116,7 +116,7 @@ var isBigNumber = function (object) {
var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber;
if (!result) {
if
(typeof(object) === "object"
) {
if
(typeof(object) === "object" && object.constructor != null
) {
result = object.constructor.toString().indexOf("function BigNumber(") == 0;
}
}
...
...
rpc/api/net.go
View file @
e84f3ec1
...
...
@@ -32,6 +32,7 @@ var (
netMapping
=
map
[
string
]
nethandler
{
"net_peerCount"
:
(
*
netApi
)
.
PeerCount
,
"net_listening"
:
(
*
netApi
)
.
IsListening
,
"net_version"
:
(
*
netApi
)
.
Version
,
}
)
...
...
@@ -93,3 +94,7 @@ func (self *netApi) IsListening(req *shared.Request) (interface{}, error) {
return
self
.
xeth
.
IsListening
(),
nil
}
func
(
self
*
netApi
)
Version
(
req
*
shared
.
Request
)
(
interface
{},
error
)
{
return
self
.
xeth
.
NetworkVersion
(),
nil
}
rpc/api/net_js.go
View file @
e84f3ec1
...
...
@@ -30,6 +30,10 @@ web3._extend({
],
properties:
[
new web3._extend.Property({
name: 'version',
getter: 'net_version'
})
]
});
`
rpc/api/txpool_js.go
View file @
e84f3ec1
...
...
@@ -26,8 +26,7 @@ web3._extend({
[
new web3._extend.Property({
name: 'status',
getter: 'txpool_status',
outputFormatter: function(obj) { return obj; }
getter: 'txpool_status'
})
]
});
...
...
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