aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/types/transaction.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index b824a77f6..82af9335f 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -266,9 +266,9 @@ func (s Transactions) GetRlp(i int) []byte {
return enc
}
-// TxDifference returns a new set t which is the difference between a to b.
-func TxDifference(a, b Transactions) (keep Transactions) {
- keep = make(Transactions, 0, len(a))
+// TxDifference returns a new set which is the difference between a and b.
+func TxDifference(a, b Transactions) Transactions {
+ keep := make(Transactions, 0, len(a))
remove := make(map[common.Hash]struct{})
for _, tx := range b {