aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-03-08 14:49:00 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commitcdef678e25c9c5a2ce8677169235a84aff731ef8 (patch)
treef6bd4494e7791e259e2bb6f9f39ffecd44e54f39 /dex/handler.go
parent107ccba7eb8b86d7f3a46a8346b1cf1633429955 (diff)
downloaddexon-cdef678e25c9c5a2ce8677169235a84aff731ef8.tar.gz
dexon-cdef678e25c9c5a2ce8677169235a84aff731ef8.tar.zst
dexon-cdef678e25c9c5a2ce8677169235a84aff731ef8.zip
dex, dex/downloader: remove some TODO comments (#232)
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 5bd615c86..efd0538f4 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -909,7 +909,6 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
}
govState, err := pm.blockchain.GetGovStateByHash(hash)
if err != nil {
- // TODO(sonic): handle this error
panic(err)
}
return p.SendGovState(govState)
@@ -1027,7 +1026,6 @@ func (pm *ProtocolManager) BroadcastAgreementResult(
}
}
- // TODO(sonic): send to some of other nodes (gossip)
for _, peer := range pm.peers.PeersWithoutAgreement(rlpHash(agreement)) {
peer.AsyncSendAgreement(agreement)
}
@@ -1048,7 +1046,6 @@ func (pm *ProtocolManager) BroadcastRandomnessResult(
}
}
- // TODO(sonic): send to some of other nodes (gossip)
for _, peer := range pm.peers.PeersWithoutRandomness(rlpHash(randomness)) {
peer.AsyncSendRandomnesses(randomnesses)
}