Browse Source

fix GetStatus() usage

pull/111/merge
Jae Kwon 9 years ago
parent
commit
dea5eab643
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      blockchain/pool.go
  2. +1
    -1
      blockchain/reactor.go

+ 1
- 1
blockchain/pool.go View File

@ -108,7 +108,7 @@ RUN_LOOP:
}
}
func (pool *BlockPool) GetStatus() (int, int32, int32) {
func (pool *BlockPool) GetStatus() (height int, numPending int32, numUnssigned int32) {
pool.requestsMtx.Lock() // Lock
defer pool.requestsMtx.Unlock()


+ 1
- 1
blockchain/reactor.go View File

@ -199,7 +199,7 @@ FOR_LOOP:
// ask for status updates
go bcR.BroadcastStatusRequest()
case _ = <-switchToConsensusTicker.C:
height, numUnassigned, numPending := bcR.pool.GetStatus()
height, numPending, numUnassigned := bcR.pool.GetStatus()
outbound, inbound, _ := bcR.sw.NumPeers()
log.Debug("Consensus ticker", "numUnassigned", numUnassigned, "numPending", numPending,
"total", len(bcR.pool.requests), "outbound", outbound, "inbound", inbound)


Loading…
Cancel
Save