OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edit code while reviewing the code (#255)
[bytom/vapor.git]
/
api
/
nodeinfo.go
diff --git
a/api/nodeinfo.go
b/api/nodeinfo.go
index
7ddde83
..
b00c8fd
100644
(file)
--- a/
api/nodeinfo.go
+++ b/
api/nodeinfo.go
@@
-33,7
+33,7
@@
func (a *API) GetNodeInfo() *NetInfo {
info := &NetInfo{
Listening: a.sync.IsListening(),
Syncing: !a.sync.IsCaughtUp(),
info := &NetInfo{
Listening: a.sync.IsListening(),
Syncing: !a.sync.IsCaughtUp(),
- Mining: a.
cpuMiner.IsMin
ing(),
+ Mining: a.
blockProposer.IsPropos
ing(),
PeerCount: a.sync.PeerCount(),
CurrentBlock: a.chain.BestBlockHeight(),
NetWorkID: a.sync.GetNetwork(),
PeerCount: a.sync.PeerCount(),
CurrentBlock: a.chain.BestBlockHeight(),
NetWorkID: a.sync.GetNetwork(),
@@
-98,9
+98,9
@@
func (a *API) isMining() Response {
return NewSuccessResponse(IsMining)
}
return NewSuccessResponse(IsMining)
}
-// Is
Min
ing return mining status
+// Is
Propos
ing return mining status
func (a *API) IsMining() bool {
func (a *API) IsMining() bool {
- return a.
cpuMiner.IsMin
ing()
+ return a.
blockProposer.IsPropos
ing()
}
// return the peers of current node
}
// return the peers of current node