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

Method setHeight

txnpool/proc/txnpool_server.go:243–247  ·  view source on GitHub ↗

setHeight set current block height

(height uint32)

Source from the content-addressed store, hash-verified

241
242// setHeight set current block height
243func (s *TXPoolServer) setHeight(height uint32) {
244 s.mu.Lock()
245 defer s.mu.Unlock()
246 s.height = height
247}
248
249// getGasPrice returns the current gas price enforced by the transaction pool
250func (s *TXPoolServer) getGasPrice() uint64 {

Callers 2

getTxPoolMethod · 0.95
verifyBlockMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected