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

Method SetHeight

p2pserver/peer/peer.go:183–185  ·  view source on GitHub ↗

SetHeight set height to peer

(height uint64)

Source from the content-addressed store, hash-verified

181
182//SetHeight set height to peer
183func (this *Peer) SetHeight(height uint64) {
184 this.base.SetHeight(height)
185}
186
187//GetState return sync state
188func (this *Peer) GetState() uint32 {

Callers 1

UpdateInfoMethod · 0.95

Calls 1

SetHeightMethod · 0.65

Tested by

no test coverage detected