فهرست منبع

core: use removeTx instead of delete

obscuren 10 سال پیش
والد
کامیت
92f998c7ef
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      core/transaction_pool.go

+ 1 - 1
core/transaction_pool.go

@@ -235,7 +235,7 @@ func (self *TxPool) RemoveTransactions(txs types.Transactions) {
 	defer self.mu.Unlock()
 
 	for _, tx := range txs {
-		delete(self.txs, tx.Hash())
+		self.removeTx(tx.Hash())
 	}
 }