diff --git a/types/tx.go b/types/tx.go index 500627137..2dd7d3a51 100644 --- a/types/tx.go +++ b/types/tx.go @@ -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. diff --git a/types/tx_test.go b/types/tx_test.go index dcd13f3f6..d8737e9f0 100644 --- a/types/tx_test.go +++ b/types/tx_test.go @@ -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 }