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

Method SetVersion

p2pserver/peer/peer.go:62–64  ·  view source on GitHub ↗

SetVersion sets a peer's version

(version uint32)

Source from the content-addressed store, hash-verified

60
61// SetVersion sets a peer's version
62func (this *PeerCom) SetVersion(version uint32) {
63 this.version = version
64}
65
66// GetVersion returns a peer's version
67func (this *PeerCom) GetVersion() uint32 {

Callers 3

TestGetPeerComInfoFunction · 0.80
UpdateInfoMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGetPeerComInfoFunction · 0.64