les: fixed transaction sending deadlock (#3568)

release/1.5
Felföldi Zsolt 8 years ago committed by Felix Lange
parent 2a1a531ba3
commit 0fa9a8929c
  1. 1
      les/txrelay.go

@ -110,7 +110,6 @@ func (self *LesTxRelay) send(txs types.Transactions, count int) {
for p, list := range sendTo {
cost := p.GetRequestCost(SendTxMsg, len(list))
go func(p *peer, list types.Transactions, cost uint64) {
p.fcServer.SendRequest(0, cost)
p.SendTxs(cost, list)
}(p, list, cost)
}

Loading…
Cancel
Save