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

Method GetHeight

p2pserver/peer/peer.go:178–180  ·  view source on GitHub ↗

GetHeight return peer`s block height

()

Source from the content-addressed store, hash-verified

176
177//GetHeight return peer`s block height
178func (this *Peer) GetHeight() uint64 {
179 return this.base.GetHeight()
180}
181
182//SetHeight set height to peer
183func (this *Peer) SetHeight(height uint64) {

Callers 1

DumpInfoMethod · 0.95

Calls 1

GetHeightMethod · 0.65

Tested by

no test coverage detected