mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 20:54:23 +01:00
pytest: Unbreak the test_feerate_spam test for elementsd
Looking for specific feerates, but not adjusting the amounts involved doesn't work.
This commit is contained in:
committed by
Rusty Russell
parent
7201cb7315
commit
5532305d76
@@ -2207,7 +2207,11 @@ def test_change_chaining(node_factory, bitcoind):
|
||||
def test_feerate_spam(node_factory, chainparams):
|
||||
l1, l2 = node_factory.line_graph(2)
|
||||
|
||||
slack = 45000000
|
||||
# We constrain the value the funder has at its disposal so we get the
|
||||
# REMOTE feerate we are looking for below. This may be fragile and depends
|
||||
# on the transactions we generate.
|
||||
slack = 45000000 if not chainparams['elements'] else 68000000
|
||||
|
||||
# Pay almost everything to l2.
|
||||
l1.pay(l2, 10**9 - slack)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user