Height returns the current height of the blockchain.
()
| 178 | |
| 179 | // Height returns the current height of the blockchain. |
| 180 | func (c *Chain) Height() uint64 { |
| 181 | c.state.cond.L.Lock() |
| 182 | defer c.state.cond.L.Unlock() |
| 183 | return c.state.height |
| 184 | } |
| 185 | |
| 186 | // State returns the most recent state available. It will not be current |
| 187 | // unless the current process is the leader. Callers should examine the |
no outgoing calls