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:
parent
d4c502a7d6
commit
70d150bff6
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue