loop/utils/tx_sort.go
Boris Nagaev 0ee07198f6
build: update lndclient (btcd v2)
Include https://github.com/lightninglabs/lndclient/pull/280
multi: migrate to btcd v2 modules + add WalletKit.SubmitPackage

Migrate Loop imports and update Aperture and Taproot Assets to compatible
revisions so this commit remains green on its own.
2026-08-11 13:36:02 -05:00

15 lines
329 B
Go

package utils
import (
"bytes"
"github.com/btcsuite/btcd/wire/v2"
)
// Bip69Less is taken from btcd in btcutil/txsort/txsort.go.
func Bip69Less(output1, output2 *wire.TxOut) bool {
if output1.Value == output2.Value {
return bytes.Compare(output1.PkScript, output2.PkScript) < 0
}
return output1.Value < output2.Value
}