@@ -254,8 +254,8 @@ func testPresigned_forgotten_presign(t *testing.T,
254254 ctx , cancel := context .WithCancel (context .Background ())
255255 defer cancel ()
256256
257- customFeeRate := func (_ context.Context ,
258- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
257+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
258+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
259259
260260 return chainfee .SatPerKWeight (10_000 ), nil
261261 }
@@ -330,8 +330,8 @@ func testPresigned_input1_offline_then_input2(t *testing.T,
330330 setFeeRate := func (feeRate chainfee.SatPerKWeight ) {
331331 currentFeeRate = feeRate
332332 }
333- customFeeRate := func (_ context.Context ,
334- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
333+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
334+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
335335
336336 return currentFeeRate , nil
337337 }
@@ -511,8 +511,8 @@ func testPresigned_two_inputs_one_goes_offline(t *testing.T,
511511 setFeeRate := func (feeRate chainfee.SatPerKWeight ) {
512512 currentFeeRate = feeRate
513513 }
514- customFeeRate := func (_ context.Context ,
515- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
514+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
515+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
516516
517517 return currentFeeRate , nil
518518 }
@@ -647,8 +647,8 @@ func testPresigned_first_publish_fails(t *testing.T,
647647 setFeeRate := func (feeRate chainfee.SatPerKWeight ) {
648648 currentFeeRate = feeRate
649649 }
650- customFeeRate := func (_ context.Context ,
651- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
650+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
651+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
652652
653653 return currentFeeRate , nil
654654 }
@@ -770,8 +770,8 @@ func testPresigned_locktime(t *testing.T,
770770 setFeeRate := func (feeRate chainfee.SatPerKWeight ) {
771771 currentFeeRate = feeRate
772772 }
773- customFeeRate := func (_ context.Context ,
774- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
773+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
774+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
775775
776776 return currentFeeRate , nil
777777 }
@@ -854,8 +854,8 @@ func testPresigned_presigned_group(t *testing.T,
854854 ctx , cancel := context .WithCancel (context .Background ())
855855 defer cancel ()
856856
857- customFeeRate := func (_ context.Context ,
858- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
857+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
858+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
859859
860860 return chainfee .SatPerKWeight (10_000 ), nil
861861 }
@@ -1091,8 +1091,8 @@ func testPresigned_presigned_and_regular_sweeps(t *testing.T, store testStore,
10911091 setFeeRate := func (feeRate chainfee.SatPerKWeight ) {
10921092 currentFeeRate = feeRate
10931093 }
1094- customFeeRate := func (_ context.Context ,
1095- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
1094+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
1095+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
10961096
10971097 return currentFeeRate , nil
10981098 }
@@ -1372,8 +1372,8 @@ func testPresigned_purging(t *testing.T, numSwaps, numConfirmedSwaps int,
13721372 ctx , cancel := context .WithCancel (context .Background ())
13731373 defer cancel ()
13741374
1375- customFeeRate := func (_ context.Context ,
1376- _ lntypes. Hash ) (chainfee.SatPerKWeight , error ) {
1375+ customFeeRate := func (_ context.Context , _ lntypes. Hash ,
1376+ _ wire. OutPoint ) (chainfee.SatPerKWeight , error ) {
13771377
13781378 return feeRate , nil
13791379 }
0 commit comments