Skip to content

Commit

Permalink
Merge pull request DNAProject#7 from laizy/hash_race_condition
Browse files Browse the repository at this point in the history
fix race condition in txpool
  • Loading branch information
Arbio5zt authored Jul 4, 2018
2 parents bb93dc5 + 09f4176 commit 00325d4
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 00325d4

Please sign in to comment.