pytest: update elements for new, more accurate feerate calc.

And skip some tests: I'd simply be pasting in the results, which is
not very useful.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-01-26 12:42:34 +10:30
committed by Christian Decker
parent a55cfab00d
commit c0e3155bb6
2 changed files with 17 additions and 12 deletions

View File

@@ -3140,13 +3140,14 @@ def test_change_chaining(node_factory, bitcoind):
l1.rpc.fundchannel(l3.info['id'], 10**7, minconf=0)
@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Fees on elements are different")
def test_feerate_spam(node_factory, chainparams):
l1, l2 = node_factory.line_graph(2)
# We constrain the value the opener 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
slack = 45000000
# Pay almost everything to l2.
l1.pay(l2, 10**9 - slack)