1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-03-16 15:55:37 +00:00

Merge pull request #1897 from Galoretka/rawe

BIP69: fix function name typo in example code
This commit is contained in:
Mark "Murch" Erhardt
2025-07-16 16:27:14 -07:00
committed by GitHub

View File

@@ -49,7 +49,7 @@ def output_cmp(output_tuple1, output_tuple2):
elif (output_tuple1[0] > output_tuple2[0]):
return 1
#tie-breaker: scriptPubKey_byte_arr
return bytearray_cmp(output_tuple1[1], output_tuple2[1])
return bytearr_cmp(output_tuple1[1], output_tuple2[1])
def sort_outputs(output_tuples):
return sorted(output_tuples, cmp=output_cmp)