From cd9a17eaa4cd05bdf77d488064f317140d7b49e8 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 17 Sep 2018 10:55:08 -0700 Subject: [PATCH] Log invalid transactions discarded before creating each new block --- node/node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node/node.go b/node/node.go index 5e30dea0a..513180842 100644 --- a/node/node.go +++ b/node/node.go @@ -66,6 +66,8 @@ func (node *Node) getTransactionsForNewBlock(maxNumTxs int) ([]*blockchain.Trans node.pendingTxMutex.Lock() selected, unselected, invalid, crossShardTxs := node.UtxoPool.SelectTransactionsForNewBlock(node.pendingTransactions, maxNumTxs) _ = invalid // invalid txs are discard + + node.log.Debug("Invalid transactions discarded", "number", len(invalid)) node.pendingTransactions = unselected node.pendingTxMutex.Unlock() return selected, crossShardTxs