aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-09 16:55:21 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-15 22:09:55 +0800
commit11fa8f2a179ec3b871ee143c0d1bc9115a0f074e (patch)
treefe50d26bed49dc24f2f9b421bcc93a92ecd81db4
parenta4113280621ff1d3954430376ae6254a4e754ab0 (diff)
downloadgo-tangerine-11fa8f2a179ec3b871ee143c0d1bc9115a0f074e.tar.gz
go-tangerine-11fa8f2a179ec3b871ee143c0d1bc9115a0f074e.tar.zst
go-tangerine-11fa8f2a179ec3b871ee143c0d1bc9115a0f074e.zip
dex: reduce agreement result (#348)
-rw-r--r--dex/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/dex/handler.go b/dex/handler.go
index deb959c45..398a8443a 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1116,6 +1116,7 @@ func (pm *ProtocolManager) BroadcastAgreementResult(
}
for _, peer := range pm.peers.PeersWithoutAgreement(agreement.Position) {
+ peer.MarkAgreement(agreement.Position)
peer.AsyncSendAgreement(agreement)
}
}