We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54652dc commit 245a666Copy full SHA for 245a666
utils/tx_sort.go
@@ -0,0 +1,15 @@
1
+package utils
2
+
3
+import (
4
+ "bytes"
5
6
+ "github.com/btcsuite/btcd/wire"
7
+)
8
9
+// Bip69Less is taken from btcd in btcutil/txsort/txsort.go.
10
+func Bip69Less(output1, output2 *wire.TxOut) bool {
11
+ if output1.Value == output2.Value {
12
+ return bytes.Compare(output1.PkScript, output2.PkScript) < 0
13
+ }
14
+ return output1.Value < output2.Value
15
+}
0 commit comments