From 92f998c7ef52f233457cd7bb789395cf3b978e74 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 5 May 2015 23:09:18 +0200 Subject: [PATCH] core: use removeTx instead of delete --- core/transaction_pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/transaction_pool.go b/core/transaction_pool.go index 22a804e1dc..bac6b7f0b4 100644 --- a/core/transaction_pool.go +++ b/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()) } }