提交 0fa9a892 编写于 作者: F Felföldi Zsolt 提交者: Felix Lange

les: fixed transaction sending deadlock (#3568)

上级 2a1a531b
...@@ -110,7 +110,6 @@ func (self *LesTxRelay) send(txs types.Transactions, count int) { ...@@ -110,7 +110,6 @@ func (self *LesTxRelay) send(txs types.Transactions, count int) {
for p, list := range sendTo { for p, list := range sendTo {
cost := p.GetRequestCost(SendTxMsg, len(list)) cost := p.GetRequestCost(SendTxMsg, len(list))
go func(p *peer, list types.Transactions, cost uint64) { go func(p *peer, list types.Transactions, cost uint64) {
p.fcServer.SendRequest(0, cost)
p.SendTxs(cost, list) p.SendTxs(cost, list)
}(p, list, cost) }(p, list, cost)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册