MCPcopy Create free account
hub / github.com/DNAProject/DNA / getHeight

Method getHeight

txnpool/proc/txnpool_server.go:236–240  ·  view source on GitHub ↗

getHeight return current block height

()

Source from the content-addressed store, hash-verified

234
235// getHeight return current block height
236func (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
243func (s *TXPoolServer) setHeight(height uint32) {

Callers 1

handleRspMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected