les: fixed transaction sending deadlock (#3568)

This commit is contained in:
Felföldi Zsolt 2017-01-16 10:51:29 +01:00 committed by Felix Lange
parent 2a1a531ba3
commit 0fa9a8929c
1 changed files with 0 additions and 1 deletions

View File

@ -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)
}