浏览代码

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())
 	}
 }