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
d4d3fc6a
Commit
d4d3fc6a
authored
Sep 11, 2015
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsre, rpc/api: pull in new web3 and use hex numbers
parent
99b62f36
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
612 additions
and
187 deletions
+612
-187
ethereum_js.go
jsre/ethereum_js.go
+609
-180
eth.go
rpc/api/eth.go
+3
-3
eth_js.go
rpc/api/eth_js.go
+0
-4
No files found.
jsre/ethereum_js.go
View file @
d4d3fc6a
This diff is collapsed.
Click to expand it.
rpc/api/eth.go
View file @
d4d3fc6a
...
...
@@ -173,9 +173,9 @@ func (self *ethApi) IsSyncing(req *shared.Request) (interface{}, error) {
if
current
<
height
{
return
map
[
string
]
interface
{}{
"startingBlock"
:
origin
,
"currentBlock"
:
current
,
"highestBlock"
:
height
,
"startingBlock"
:
newHexNum
(
big
.
NewInt
(
int64
(
origin
))
.
Bytes
())
,
"currentBlock"
:
newHexNum
(
big
.
NewInt
(
int64
(
current
))
.
Bytes
())
,
"highestBlock"
:
newHexNum
(
big
.
NewInt
(
int64
(
height
))
.
Bytes
())
,
},
nil
}
return
false
,
nil
...
...
rpc/api/eth_js.go
View file @
d4d3fc6a
...
...
@@ -42,10 +42,6 @@ web3._extend({
new web3._extend.Property({
name: 'pendingTransactions',
getter: 'eth_pendingTransactions'
}),
new web3._extend.Property({
name: 'syncing',
getter: 'eth_syncing'
})
]
});
...
...
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