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

Method SetRelay

p2pserver/peer/peer.go:82–84  ·  view source on GitHub ↗

SerRelay sets a peer's relay

(relay bool)

Source from the content-addressed store, hash-verified

80
81// SerRelay sets a peer's relay
82func (this *PeerCom) SetRelay(relay bool) {
83 this.relay = relay
84}
85
86// GetRelay returns a peer's relay
87func (this *PeerCom) GetRelay() bool {

Callers 3

TestGetPeerComInfoFunction · 0.80
UpdateInfoMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGetPeerComInfoFunction · 0.64