@@ -783,7 +783,7 @@ func newRbfCloserTestHarness(t *testing.T,
783783 ChanPoint : chanPoint ,
784784 ChanID : chanID ,
785785 Scid : scid ,
786- DefaultFeeRate : defaultFeeRate . FeePerVByte () ,
786+ DefaultFeeRate : defaultFeeRate ,
787787 ThawHeight : cfg .thawHeight ,
788788 RemoteUpfrontShutdown : cfg .remoteUpfrontAddr ,
789789 LocalUpfrontShutdown : cfg .localUpfrontAddr ,
@@ -854,7 +854,7 @@ func TestRbfChannelActiveTransitions(t *testing.T) {
854854 localAddr := lnwire .DeliveryAddress (bytes .Repeat ([]byte {0x01 }, 20 ))
855855 remoteAddr := lnwire .DeliveryAddress (bytes .Repeat ([]byte {0x02 }, 20 ))
856856
857- feeRate := chainfee .SatPerVByte ( 1000 )
857+ feeRate := chainfee .SatPerKWeight ( 250_000 )
858858
859859 // Test that if a spend event is received, the FSM transitions to the
860860 // CloseFin terminal state.
@@ -1050,7 +1050,7 @@ func TestRbfShutdownPendingTransitions(t *testing.T) {
10501050 t .Run ("initiator_shutdown_recv_ok" , func (t * testing.T ) {
10511051 firstState := * startingState
10521052 firstState .IdealFeeRate = fn .Some (
1053- chainfee .FeePerKwFloor . FeePerVByte () ,
1053+ chainfee .FeePerKwFloor ,
10541054 )
10551055 firstState .ShutdownScripts = ShutdownScripts {
10561056 LocalDeliveryScript : localAddr ,
@@ -1097,7 +1097,7 @@ func TestRbfShutdownPendingTransitions(t *testing.T) {
10971097 t .Run ("responder_complete" , func (t * testing.T ) {
10981098 firstState := * startingState
10991099 firstState .IdealFeeRate = fn .Some (
1100- chainfee .FeePerKwFloor . FeePerVByte () ,
1100+ chainfee .FeePerKwFloor ,
11011101 )
11021102 firstState .ShutdownScripts = ShutdownScripts {
11031103 LocalDeliveryScript : localAddr ,
@@ -1128,7 +1128,7 @@ func TestRbfShutdownPendingTransitions(t *testing.T) {
11281128 t .Run ("early_remote_offer_shutdown_complete" , func (t * testing.T ) {
11291129 firstState := * startingState
11301130 firstState .IdealFeeRate = fn .Some (
1131- chainfee .FeePerKwFloor . FeePerVByte () ,
1131+ chainfee .FeePerKwFloor ,
11321132 )
11331133 firstState .ShutdownScripts = ShutdownScripts {
11341134 LocalDeliveryScript : localAddr ,
@@ -1175,7 +1175,7 @@ func TestRbfShutdownPendingTransitions(t *testing.T) {
11751175 t .Run ("early_remote_offer_shutdown_received" , func (t * testing.T ) {
11761176 firstState := * startingState
11771177 firstState .IdealFeeRate = fn .Some (
1178- chainfee .FeePerKwFloor . FeePerVByte () ,
1178+ chainfee .FeePerKwFloor ,
11791179 )
11801180 firstState .ShutdownScripts = ShutdownScripts {
11811181 LocalDeliveryScript : localAddr ,
@@ -1433,7 +1433,7 @@ func TestRbfCloseClosingNegotiationLocal(t *testing.T) {
14331433 }
14341434
14351435 sendOfferEvent := & SendOfferEvent {
1436- TargetFeeRate : chainfee .FeePerKwFloor . FeePerVByte () ,
1436+ TargetFeeRate : chainfee .FeePerKwFloor ,
14371437 }
14381438
14391439 balanceAfterClose := localBalance .ToSatoshis () - absoluteFee
@@ -1614,7 +1614,7 @@ func TestRbfCloseClosingNegotiationLocal(t *testing.T) {
16141614 // Next, we'll send in a new SendOfferEvent event which
16151615 // simulates the user requesting a RBF fee bump. We'll use 10x
16161616 // the fee we used in the last iteration.
1617- rbfFeeBump := chainfee .FeePerKwFloor . FeePerVByte () * 10
1617+ rbfFeeBump := chainfee .FeePerKwFloor * 10
16181618 localOffer := & SendOfferEvent {
16191619 TargetFeeRate : rbfFeeBump ,
16201620 }
@@ -1649,7 +1649,7 @@ func TestRbfCloseClosingNegotiationLocal(t *testing.T) {
16491649 // the amount we have in the channel.
16501650 closeHarness .expectFeeEstimate (btcutil .SatoshiPerBitcoin , 1 )
16511651
1652- rbfFeeBump := chainfee .FeePerKwFloor . FeePerVByte ()
1652+ rbfFeeBump := chainfee .FeePerKwFloor
16531653 localOffer := & SendOfferEvent {
16541654 TargetFeeRate : rbfFeeBump ,
16551655 }
@@ -1997,7 +1997,7 @@ func TestRbfCloseErr(t *testing.T) {
19971997 })
19981998 defer closeHarness .stopAndAssert ()
19991999
2000- rbfFeeBump := chainfee .FeePerKwFloor . FeePerVByte ()
2000+ rbfFeeBump := chainfee .FeePerKwFloor
20012001 localOffer := & SendOfferEvent {
20022002 TargetFeeRate : rbfFeeBump ,
20032003 }
0 commit comments