@@ -48,7 +48,7 @@ class ReplaceableTxFunderSpec extends TestKitBaseClass with AnyFunSuiteLike {
48
48
0
49
49
)
50
50
val anchorTx = ClaimLocalAnchorOutputTx (
51
- InputInfo (OutPoint (commitTx, 0 ), commitTx.txOut.head, anchorScript),
51
+ InputInfo . SegwitInput (OutPoint (commitTx, 0 ), commitTx.txOut.head, anchorScript),
52
52
Transaction (2 , Seq (TxIn (OutPoint (commitTx, 0 ), ByteVector .empty, 0 )), Nil , 0 ),
53
53
ConfirmationTarget .Absolute (BlockHeight (0 ))
54
54
)
@@ -67,14 +67,14 @@ class ReplaceableTxFunderSpec extends TestKitBaseClass with AnyFunSuiteLike {
67
67
0
68
68
)
69
69
val htlcSuccess = HtlcSuccessWithWitnessData (HtlcSuccessTx (
70
- InputInfo (OutPoint (commitTx, 0 ), commitTx.txOut.head, htlcSuccessScript),
70
+ InputInfo . SegwitInput (OutPoint (commitTx, 0 ), commitTx.txOut.head, htlcSuccessScript),
71
71
Transaction (2 , Seq (TxIn (OutPoint (commitTx, 0 ), ByteVector .empty, 0 )), Seq (TxOut (5000 sat, Script .pay2wpkh(PlaceHolderPubKey ))), 0 ),
72
72
paymentHash,
73
73
17 ,
74
74
ConfirmationTarget .Absolute (BlockHeight (0 ))
75
75
), PlaceHolderSig , preimage)
76
76
val htlcTimeout = HtlcTimeoutWithWitnessData (HtlcTimeoutTx (
77
- InputInfo (OutPoint (commitTx, 1 ), commitTx.txOut.last, htlcTimeoutScript),
77
+ InputInfo . SegwitInput (OutPoint (commitTx, 1 ), commitTx.txOut.last, htlcTimeoutScript),
78
78
Transaction (2 , Seq (TxIn (OutPoint (commitTx, 1 ), ByteVector .empty, 0 )), Seq (TxOut (4000 sat, Script .pay2wpkh(PlaceHolderPubKey ))), 0 ),
79
79
12 ,
80
80
ConfirmationTarget .Absolute (BlockHeight (0 ))
@@ -88,14 +88,14 @@ class ReplaceableTxFunderSpec extends TestKitBaseClass with AnyFunSuiteLike {
88
88
val htlcSuccessScript = Scripts .htlcReceived(PlaceHolderPubKey , PlaceHolderPubKey , PlaceHolderPubKey , paymentHash, CltvExpiry (0 ), ZeroFeeHtlcTxAnchorOutputsCommitmentFormat )
89
89
val htlcTimeoutScript = Scripts .htlcOffered(PlaceHolderPubKey , PlaceHolderPubKey , PlaceHolderPubKey , randomBytes32(), ZeroFeeHtlcTxAnchorOutputsCommitmentFormat )
90
90
val claimHtlcSuccess = ClaimHtlcSuccessWithWitnessData (ClaimHtlcSuccessTx (
91
- InputInfo (OutPoint (TxId (ByteVector32 .Zeroes ), 3 ), TxOut (5000 sat, Script .pay2wsh(htlcSuccessScript)), htlcSuccessScript),
91
+ InputInfo . SegwitInput (OutPoint (TxId (ByteVector32 .Zeroes ), 3 ), TxOut (5000 sat, Script .pay2wsh(htlcSuccessScript)), htlcSuccessScript),
92
92
Transaction (2 , Seq (TxIn (OutPoint (TxId (ByteVector32 .Zeroes ), 3 ), ByteVector .empty, 0 )), Seq (TxOut (5000 sat, Script .pay2wpkh(PlaceHolderPubKey ))), 0 ),
93
93
paymentHash,
94
94
5 ,
95
95
ConfirmationTarget .Absolute (BlockHeight (0 ))
96
96
), preimage)
97
97
val claimHtlcTimeout = ClaimHtlcTimeoutWithWitnessData (ClaimHtlcTimeoutTx (
98
- InputInfo (OutPoint (TxId (ByteVector32 .Zeroes ), 7 ), TxOut (5000 sat, Script .pay2wsh(htlcTimeoutScript)), htlcTimeoutScript),
98
+ InputInfo . SegwitInput (OutPoint (TxId (ByteVector32 .Zeroes ), 7 ), TxOut (5000 sat, Script .pay2wsh(htlcTimeoutScript)), htlcTimeoutScript),
99
99
Transaction (2 , Seq (TxIn (OutPoint (TxId (ByteVector32 .Zeroes ), 7 ), ByteVector .empty, 0 )), Seq (TxOut (5000 sat, Script .pay2wpkh(PlaceHolderPubKey ))), 0 ),
100
100
7 ,
101
101
ConfirmationTarget .Absolute (BlockHeight (0 ))
0 commit comments