diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-06 05:09:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-07 00:30:55 +0800 |
commit | 92f998c7ef52f233457cd7bb789395cf3b978e74 (patch) | |
tree | 948dd06a077769d2d92742f9a06fdb1229945386 /core | |
parent | 03bb88dec0163abd99d0fd6c86ab5852c59669cb (diff) | |
download | go-tangerine-92f998c7ef52f233457cd7bb789395cf3b978e74.tar.gz go-tangerine-92f998c7ef52f233457cd7bb789395cf3b978e74.tar.zst go-tangerine-92f998c7ef52f233457cd7bb789395cf3b978e74.zip |
core: use removeTx instead of delete
Diffstat (limited to 'core')
-rw-r--r-- | core/transaction_pool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/transaction_pool.go b/core/transaction_pool.go index 22a804e1d..bac6b7f0b 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()) } } |