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
459d8987
Commit
459d8987
authored
Apr 28, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth, rpc, xeth: ext_hanhrate => eth_hashrate
parent
46f63ef0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
backend.go
eth/backend.go
+0
-1
api.go
rpc/api.go
+1
-1
xeth.go
xeth/xeth.go
+1
-1
No files found.
eth/backend.go
View file @
459d8987
...
@@ -343,7 +343,6 @@ func (s *Ethereum) Etherbase() (eb common.Address, err error) {
...
@@ -343,7 +343,6 @@ func (s *Ethereum) Etherbase() (eb common.Address, err error) {
func
(
s
*
Ethereum
)
StopMining
()
{
s
.
miner
.
Stop
()
}
func
(
s
*
Ethereum
)
StopMining
()
{
s
.
miner
.
Stop
()
}
func
(
s
*
Ethereum
)
IsMining
()
bool
{
return
s
.
miner
.
Mining
()
}
func
(
s
*
Ethereum
)
IsMining
()
bool
{
return
s
.
miner
.
Mining
()
}
func
(
s
*
Ethereum
)
HashRate
()
int64
{
return
s
.
miner
.
HashRate
()
}
func
(
s
*
Ethereum
)
Miner
()
*
miner
.
Miner
{
return
s
.
miner
}
func
(
s
*
Ethereum
)
Miner
()
*
miner
.
Miner
{
return
s
.
miner
}
// func (s *Ethereum) Logger() logger.LogSystem { return s.logger }
// func (s *Ethereum) Logger() logger.LogSystem { return s.logger }
...
...
rpc/api.go
View file @
459d8987
...
@@ -465,7 +465,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
...
@@ -465,7 +465,7 @@ 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
"e
xt
_hashrate"
:
case
"e
th
_hashrate"
:
*
reply
=
newHexNum
(
api
.
xeth
()
.
HashRate
())
*
reply
=
newHexNum
(
api
.
xeth
()
.
HashRate
())
// case "eth_register":
// case "eth_register":
...
...
xeth/xeth.go
View file @
459d8987
...
@@ -281,7 +281,7 @@ func (self *XEth) IsMining() bool {
...
@@ -281,7 +281,7 @@ func (self *XEth) IsMining() bool {
}
}
func
(
self
*
XEth
)
HashRate
()
int64
{
func
(
self
*
XEth
)
HashRate
()
int64
{
return
self
.
backend
.
HashRate
()
return
self
.
backend
.
Miner
()
.
HashRate
()
}
}
func
(
self
*
XEth
)
EthVersion
()
string
{
func
(
self
*
XEth
)
EthVersion
()
string
{
...
...
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