getHeight return current block height
()
| 234 | |
| 235 | // getHeight return current block height |
| 236 | func (s *TXPoolServer) getHeight() uint32 { |
| 237 | s.mu.RLock() |
| 238 | defer s.mu.RUnlock() |
| 239 | return s.height |
| 240 | } |
| 241 | |
| 242 | // setHeight set current block height |
| 243 | func (s *TXPoolServer) setHeight(height uint32) { |