aboutsummaryrefslogtreecommitdiffstats
path: root/dex/peer.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-29 13:00:55 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commita2403c5a125e4939a16e11ba10fadfabe6bbd136 (patch)
treef2fe598d54074ddd9e5a3ddd352484eaa2858e53 /dex/peer.go
parent41193d921118b4bdef5f0a1a5b7349a4c58abe94 (diff)
downloadgo-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar.gz
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar.bz2
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar.lz
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar.xz
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.tar.zst
go-tangerine-a2403c5a125e4939a16e11ba10fadfabe6bbd136.zip
dex: fix initial build connection bug (#311)
Diffstat (limited to 'dex/peer.go')
-rw-r--r--dex/peer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dex/peer.go b/dex/peer.go
index 0d23e630f..d3650d00d 100644
--- a/dex/peer.go
+++ b/dex/peer.go
@@ -929,6 +929,8 @@ func (ps *peerSet) ForgetConnection(round uint64) {
ps.lock.Lock()
defer ps.lock.Unlock()
+ log.Debug("Forget connection", "round", round)
+
for label := range ps.directConn {
if label.round <= round {
ps.forgetDirectConn(label)