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
9e03c48d
Commit
9e03c48d
authored
Apr 21, 2015
by
Kobi Gurkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move eth_hashrate to ext
parent
63c5c7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api.go
rpc/api.go
+2
-2
No files found.
rpc/api.go
View file @
9e03c48d
...
@@ -62,8 +62,6 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
...
@@ -62,8 +62,6 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
*
reply
=
newHexData
(
api
.
xeth
()
.
Coinbase
())
*
reply
=
newHexData
(
api
.
xeth
()
.
Coinbase
())
case
"eth_mining"
:
case
"eth_mining"
:
*
reply
=
api
.
xeth
()
.
IsMining
()
*
reply
=
api
.
xeth
()
.
IsMining
()
case
"eth_hashrate"
:
*
reply
=
newHexNum
(
api
.
xeth
()
.
HashRate
())
case
"eth_gasPrice"
:
case
"eth_gasPrice"
:
v
:=
xeth
.
DefaultGas
()
v
:=
xeth
.
DefaultGas
()
*
reply
=
newHexData
(
v
.
Bytes
())
*
reply
=
newHexData
(
v
.
Bytes
())
...
@@ -463,6 +461,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
...
@@ -463,6 +461,8 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return
err
return
err
}
}
*
reply
=
api
.
xeth
()
.
Whisper
()
.
Messages
(
args
.
Id
)
*
reply
=
api
.
xeth
()
.
Whisper
()
.
Messages
(
args
.
Id
)
case
"ext_hashrate"
:
*
reply
=
newHexNum
(
api
.
xeth
()
.
HashRate
())
// case "eth_register":
// case "eth_register":
// // Placeholder for actual type
// // Placeholder for actual type
...
...
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