@@ -63,7 +63,6 @@ func (pi predicateInfo) compareTo(b predicateInfo) int {
63
63
}
64
64
65
65
func (tx * TxSignature ) MarshalJSON () ([]byte , error ) {
66
- // Transform Predicates to an array of strings
67
66
predicateStrings := make ([]string , len (tx .Predicates ))
68
67
for i , predicate := range tx .Predicates {
69
68
predicateStrings [i ] = predicate .String ()
@@ -144,7 +143,6 @@ func (m *txSignatureMap) Add(tx *TxSignature) {
144
143
}
145
144
146
145
func (tx * TxSignature ) Equals (other * TxSignature ) bool {
147
- // Compare Queries
148
146
if len (tx .Queries ) != len (other .Queries ) {
149
147
return false
150
148
}
@@ -154,7 +152,6 @@ func (tx *TxSignature) Equals(other *TxSignature) bool {
154
152
}
155
153
}
156
154
157
- // Compare Predicates
158
155
if len (tx .Predicates ) != len (other .Predicates ) {
159
156
return false
160
157
}
@@ -168,10 +165,14 @@ func (tx *TxSignature) Equals(other *TxSignature) bool {
168
165
}
169
166
170
167
func (m * txSignatureMap ) MarshalJSON () ([]byte , error ) {
171
- // Collect all TxSignatures into a slice
168
+ // Collect all interesting TxSignatures into a slice
172
169
var signatures []* TxSignature
173
170
for _ , bucket := range m .data {
174
- signatures = append (signatures , bucket ... )
171
+ for _ , txSig := range bucket {
172
+ if txSig .Count > 1 {
173
+ signatures = append (signatures , txSig )
174
+ }
175
+ }
175
176
}
176
177
177
178
sort .Slice (signatures , func (i , j int ) bool {
0 commit comments