aboutsummaryrefslogtreecommitdiffstats
path: root/dex/peer.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-09-25 14:56:57 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:48 +0800
commit41433314bbb6db749db36ad1f479b103cea0539c (patch)
treef2fe3a3f7d69b8e07be6e25ac41302959a57ea7a /dex/peer.go
parent5806428c3132a2b86fb8ff3e34f1b2e37ff16bb7 (diff)
downloaddexon-41433314bbb6db749db36ad1f479b103cea0539c.tar
dexon-41433314bbb6db749db36ad1f479b103cea0539c.tar.gz
dexon-41433314bbb6db749db36ad1f479b103cea0539c.tar.bz2
dexon-41433314bbb6db749db36ad1f479b103cea0539c.tar.lz
dexon-41433314bbb6db749db36ad1f479b103cea0539c.tar.xz
dexon-41433314bbb6db749db36ad1f479b103cea0539c.tar.zst
dexon-41433314bbb6db749db36ad1f479b103cea0539c.zip
p2p: implement AddNotaryPeer and RemoveNotaryPeer
AddNotaryPeer adds node to static node set so that server will maintain the connection with the notary node. AddNotaryPeer also sets the notaryConn flag to allow the node to always connect, even if the slot are full. RemoveNotaryPeer removes node from static, then disconnect and unsets the notaryConn flag.
Diffstat (limited to 'dex/peer.go')
0 files changed, 0 insertions, 0 deletions