diff --git a/net/node/transactionPool.go b/net/node/transactionPool.go index 01800b5c..d3a141ba 100644 --- a/net/node/transactionPool.go +++ b/net/node/transactionPool.go @@ -215,9 +215,11 @@ func (this *TXNPool) cleanTransactionList(txns []*transaction.Transaction) error cleaned++ } else { log.Infof("txn=%x not cleaned", txn.Hash()) + this.Lock() for _, v := range this.txnList { log.Infof("v.Hash()=%x", v.Hash()) } + this.Unlock() } } if txnsNum != cleaned {