Skip to content

Commit 3ada9f8

Browse files
shubhamkmr04kaloudis
authored andcommitted
swaps: add non-cooperative refund
1 parent d2c3cb8 commit 3ada9f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/swaps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func CreateReverseClaimTransaction(endpoint string, id string, claimLeaf string,
188188
return nil
189189
}
190190

191-
func CreateRefundTransaction(endpoint string, id string, claimLeaf string, refundLeaf string, transactionHex string, privateKey string, servicePubKey string, feeRate int32, timeoutBlockHeight int32, destinationAddress string, lockupAddress string, isTestnet bool) (string, error) {
191+
func CreateRefundTransaction(endpoint string, id string, claimLeaf string, refundLeaf string, transactionHex string, privateKey string, servicePubKey string, feeRate int32, timeoutBlockHeight int32, destinationAddress string, lockupAddress string, cooperative bool, isTestnet bool) (string, error) {
192192
var toCurrency = boltz.CurrencyBtc
193193

194194
var network *boltz.Network
@@ -260,7 +260,7 @@ func CreateRefundTransaction(endpoint string, id string, claimLeaf string, refun
260260
PrivateKey: keys,
261261
TimeoutBlockHeight: uint32(timeoutBlockHeight),
262262
SwapTree: swapTree,
263-
Cooperative: true,
263+
Cooperative: cooperative,
264264
},
265265
},
266266
satPerVbyte,

0 commit comments

Comments
 (0)