return
}
- if ok := m.mempool.IsDust(tx); ok {
+ if m.mempool.IsDust(tx) {
m.peers.ProcessIllegal(peer.ID(), security.LevelMsgIllegal, "receive dust tx msg")
return
}
}
for _, tx := range txs {
- if ok := m.mempool.IsDust(tx); ok {
+ if m.mempool.IsDust(tx) {
m.peers.ProcessIllegal(peer.ID(), security.LevelMsgIllegal, "receive dust txs msg")
continue
}
continue
}
- packageTxs := []*types.Tx{}
+ var packageTxs []*types.Tx
txs := b.txPool.GetTransactions()
sort.Sort(byTime(txs))
for _, txDesc := range txs {