1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 14:22:39 +01:00

Fix tests that expect network minimum feerate to be less than other rates (#2751)

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

---------

Co-authored-by: Bastien Teinturier <31281497+t-bast@users.noreply.github.com>
This commit is contained in:
Richard Myers 2023-09-26 10:03:08 +02:00 committed by GitHub
parent d4c502a7d6
commit 70d150bff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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,

View file

@ -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)