Browse Source

lint++

pull/8094/head
William Banfield 3 years ago
parent
commit
f2b3306cd2
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      types/tx.go
  2. +0
    -1
      types/tx_test.go

+ 1
- 1
types/tx.go View File

@ -186,7 +186,7 @@ func (t TxRecordSet) Validate(maxSizeBytes int64, otxs Txs) error {
// and each value index is checked against the sorted original list for containment.
// Asymptotically, this yields a total runtime of O(N*log(N) + 2*M*log(M) + M*log(N)).
// in the input size of the original list, N, and the input size of the new list, M, respectively.
// Performance gains are likely possible, but this was prefered for readability and maintainability.
// Performance gains are likely possible, but this was preferred for readability and maintainability.
// Sort a copy of the complete transaction slice so we can check for
// duplication. The copy is so we do not change the original ordering.


+ 0
- 1
types/tx_test.go View File

@ -303,5 +303,4 @@ func assertBadProof(t *testing.T, root []byte, bad []byte, good TxProof) {
func randInt(low, high int) int {
return rand.Intn(high-low) + low
return low + off
}

Loading…
Cancel
Save