From 769657060e888612e7d585c6b6eae16a64c4ad19 Mon Sep 17 00:00:00 2001 From: b00ris Date: Thu, 24 Jan 2019 14:18:26 +0300 Subject: les: implement ultralight client (#16904) For more information about this light client mode, read https://hackmd.io/s/HJy7jjZpm --- les/txrelay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'les/txrelay.go') diff --git a/les/txrelay.go b/les/txrelay.go index 7a02cc837..6d22856f9 100644 --- a/les/txrelay.go +++ b/les/txrelay.go @@ -121,7 +121,7 @@ func (self *LesTxRelay) send(txs types.Transactions, count int) { return peer.GetRequestCost(SendTxMsg, len(ll)) }, canSend: func(dp distPeer) bool { - return dp.(*peer) == pp + return !dp.(*peer).isOnlyAnnounce && dp.(*peer) == pp }, request: func(dp distPeer) func() { peer := dp.(*peer) -- cgit v1.2.3