aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_error.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-08-17 17:27:41 +0800
committerFelix Lange <fjl@twurst.com>2015-08-19 20:57:16 +0800
commitdd54fef89888372ab5961c1b5a6ac917fc47d49c (patch)
tree83cf697002fd089f3642e88732930b38ebaa5e7c /p2p/peer_error.go
parentedccc7ae3430836141b803c252f26bf1ef98d185 (diff)
downloadgo-tangerine-dd54fef89888372ab5961c1b5a6ac917fc47d49c.tar.gz
go-tangerine-dd54fef89888372ab5961c1b5a6ac917fc47d49c.tar.zst
go-tangerine-dd54fef89888372ab5961c1b5a6ac917fc47d49c.zip
p2p/discover: don't attempt to replace nodes that are being replaced
PR #1621 changed Table locking so the mutex is not held while a contested node is being pinged. If multiple nodes ping the local node during this time window, multiple ping packets will be sent to the contested node. The changes in this commit prevent multiple packets by tracking whether the node is being replaced.
Diffstat (limited to 'p2p/peer_error.go')
0 files changed, 0 insertions, 0 deletions