From 0d79de61a2661087e95af515ecdf952b3bd1246e Mon Sep 17 00:00:00 2001 From: Dennis Won Date: Fri, 9 Aug 2019 12:13:07 -0700 Subject: [PATCH] added error handling for the case when msg was not able to extracted from tx during throttling tx --- node/worker/worker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node/worker/worker.go b/node/worker/worker.go index 220961486..7e5d62b52 100644 --- a/node/worker/worker.go +++ b/node/worker/worker.go @@ -128,7 +128,10 @@ func (w *Worker) SelectTransactionsForNewBlock(newBlockNum uint64, txs types.Tra } else { selected = append(selected, tx) - recentTxsStats[newBlockNum][sender]++ + // handle the case when msg was not able to extracted from tx + if len(sender.String()) > 0 { + recentTxsStats[newBlockNum][sender]++ + } } }