Skip to content

Commit

Permalink
Fix tests that expect network minimum feerate to be less than other r…
Browse files Browse the repository at this point in the history
…ates (#2751)

A minor fix for tests that rely on the minimum feerate being low.

---------

Co-authored-by: Bastien Teinturier <[email protected]>
  • Loading branch information
remyers and t-bast authored Sep 26, 2023
1 parent d4c502a commit 70d150b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ object FeeratesPerKw {
fastest = FeeratePerKw(feerates.fastest))

/** Used in tests */
def single(feeratePerKw: FeeratePerKw): FeeratesPerKw = FeeratesPerKw(
minimum = feeratePerKw,
def single(feeratePerKw: FeeratePerKw, networkMinFee: FeeratePerKw = FeeratePerKw(FeeratePerByte(1 sat))): FeeratesPerKw = FeeratesPerKw(
minimum = networkMinFee,
slow = feeratePerKw,
medium = feeratePerKw,
fast = feeratePerKw,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ class NormalSplicesStateSpec extends TestKitBaseClass with FixtureAnyFunSuiteLik
alice ! cmd
// we tweak the feerate
val spliceInit = alice2bob.expectMsgType[SpliceInit].copy(feerate = FeeratePerKw(100.sat))
bob.setFeerates(alice.nodeParams.currentFeerates.copy(minimum = FeeratePerKw(101.sat)))
alice2bob.forward(bob, spliceInit)
val txAbortBob = bob2alice.expectMsgType[TxAbort]
bob2alice.forward(alice, txAbortBob)
Expand Down

0 comments on commit 70d150b

Please sign in to comment.