added error handling for the case when msg was not able to extracted from tx during throttling tx

pull/1319/head
Dennis Won 5 years ago
parent 357703d643
commit b8550ab001
  1. 3
      node/worker/worker.go

@ -128,9 +128,12 @@ func (w *Worker) SelectTransactionsForNewBlock(newBlockNum uint64, txs types.Tra
} else {
selected = append(selected, tx)
// handle the case when msg was not able to extracted from tx
if len(sender.String()) > 0 {
recentTxsStats[newBlockNum][sender]++
}
}
}
// log invalid or unselected txs
if flag == shardingconfig.TxUnselect || flag == shardingconfig.TxInvalid {

Loading…
Cancel
Save