Skip to content

Commit

Permalink
fix race condition in txpool
Browse files Browse the repository at this point in the history
  • Loading branch information
laizy committed Jul 4, 2018
1 parent 6247fe8 commit 09f4176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/node/transactionPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 09f4176

Please sign in to comment.