lnwallet: add ability to do custom sort for coop close txn

This commit is contained in:
Olaoluwa Osuntokun authored and Oliver Gugger committed 2024-09-19 10:18:40 +02:00
1 parent 517608ca3b
commit 117a144f4e
2 files changed
+59 -6

No files matched your search

+2 -1
View File
@@ -11772,11 +11772,12 @@ func TestCreateCooperativeCloseTx(t *testing.T) {
)
}
closeTx := CreateCooperativeCloseTx(
closeTx, err := CreateCooperativeCloseTx(
*fundingTxIn, localDust, remoteDust,
test.localBalance, test.remoteBalance,
localScript, remoteScript, opts...,
)
require.NoError(t, err)
txsort.InPlaceSort(test.expectedTx)