diff --git a/core/types/transaction.go b/core/types/transaction.go index 25e5edaef96e..a8f3ac2a9c86 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -627,7 +627,7 @@ func TxDifference(a, b Transactions) (keep Transactions) { func HashDifference(a, b []common.Hash) []common.Hash { keep := make([]common.Hash, 0, len(a)) - remove := make(map[common.Hash]struct{}) + remove := make(map[common.Hash]struct{}, len(b)) for _, hash := range b { remove[hash] = struct{}{} }