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

Method SetHeight

p2pserver/net/netserver/netserver.go:144–146  ·  view source on GitHub ↗

SetHeight sets the local's height

(height uint64)

Source from the content-addressed store, hash-verified

142
143// SetHeight sets the local's height
144func (this *NetServer) SetHeight(height uint64) {
145 this.base.SetHeight(height)
146}
147
148// GetHeight return peer's heigh
149func (this *NetServer) GetHeight() uint64 {

Callers 1

TestNewNetServerFunction · 0.95

Calls 1

SetHeightMethod · 0.65

Tested by 1

TestNewNetServerFunction · 0.76