aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-09-30 21:50:11 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-30 21:55:01 +0800
commit1d0b0be9ef39e4e15d249f49ccece3574a788f6a (patch)
tree54457a40fc174e953356cd212b5bc8b6c88a7804 /dex
parent989f662336288dd7f548e0737bc55df0274c05e4 (diff)
downloadgo-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar.gz
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar.bz2
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar.lz
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar.xz
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.tar.zst
go-tangerine-1d0b0be9ef39e4e15d249f49ccece3574a788f6a.zip
Diffstat (limited to 'dex')
-rw-r--r--dex/handler.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 1c87d322c..b34e2eba0 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1383,16 +1383,16 @@ func (pm *ProtocolManager) peerSetLoop() {
if newRound == round+1 {
pm.peers.BuildConnection(newRound)
- if round >= 1 {
- pm.peers.ForgetConnection(round - 1)
- }
+ //if round >= 1 {
+ // pm.peers.ForgetConnection(round - 1)
+ //}
} else if newRound == round && reset+1 == newReset {
- pm.peers.ForgetLabelConnection(peerLabel{set: notaryset, round: round})
+ //pm.peers.ForgetLabelConnection(peerLabel{set: notaryset, round: round})
pm.gov.PurgeNotarySet(newRound)
pm.peers.BuildConnection(newRound)
} else {
// just forget all network connection and rebuild.
- pm.peers.ForgetConnection(round)
+ //pm.peers.ForgetConnection(round)
if newRound >= 1 {
pm.peers.BuildConnection(newRound - 1)