Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
183
func
(this *Peer) SetHeight(height uint64) {
184
this.base.SetHeight(height)
185
}
186
187
//GetState return sync state
188
func
(this *Peer) GetState() uint32 {
Callers
1
UpdateInfo
Method · 0.95
Calls
1
SetHeight
Method · 0.65
Tested by
no test coverage detected