core-lightning/tests
Rusty Russell 9152b8c424 pytest: fix test_multifunding_feerates
There's a 1 in 256 chance that our signature on the transaction is 70,
not 71 bytes long.  This changes the freerate.  So fix up the weight in
this case, to be the expected weight.

```
@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Fees on elements are different")
@pytest.mark.developer("uses dev-fail")
@pytest.mark.openchannel('v1')  # v2 the weight calculation is off by 3
deftest_multifunding_feerates(node_factory, bitcoind):
'''
    Test feerate parameters for multifundchannel
    '''
        funding_tx_feerate = '10000perkw'
        commitment_tx_feerate_int = 2000
        commitment_tx_feerate = str(commitment_tx_feerate_int) + 'perkw'
        l1, l2, l3 = node_factory.get_nodes(3, opts={'log-level': 'debug'})
        l1.fundwallet(1 << 26)
def_connect_str(node):
return'{}@localhost:{}'.format(node.info['id'], node.port)
        destinations = [{"id": _connect_str(l2), 'amount': 50000}]
        res = l1.rpc.multifundchannel(destinations, feerate=funding_tx_feerate,
                                      commitment_feerate=commitment_tx_feerate)
        entry = bitcoind.rpc.getmempoolentry(res['txid'])
        weight = entry['weight']
        expected_fee = int(funding_tx_feerate[:-5]) * weight // 1000
>       assert expected_fee == entry['fees']['base'] * 10 ** 8
E       AssertionError: assert 7000 == (Decimal('0.00007010') * (10 ** 8))
tests/test_connection.py:1982: AssertionError
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-06-27 17:21:35 +09:30
..
data inflights: save the whole psbt to the database 2021-05-24 12:17:48 +09:30
fuzz check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
plugins json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py tests: add marker for v1/v2 channel opens 2021-05-12 11:25:41 +09:30
db.py pytest: don't copy db to query it. 2021-08-26 12:44:02 +09:30
fixtures.py pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30
test_cln_rs.py lightningd: change msatoshi args to amount_msat. 2022-06-21 06:52:35 +09:30
test_closing.py pytest: fix test_channel_lease_post_expiry flake. 2022-06-27 17:21:35 +09:30
test_connection.py pytest: fix test_multifunding_feerates 2022-06-27 17:21:35 +09:30
test_db.py wallet/db_sqlite3.c: Support direct replication of SQLITE3 backends. 2021-11-17 12:10:07 +10:30
test_gossip.py pytest: fix flake in test_node_reannounce 2022-06-27 17:21:35 +09:30
test_invoices.py pytest: don't use deprecated amount fields 2022-06-21 06:52:35 +09:30
test_misc.py pytest: allow more time for test_waitblockheight !DEVELOPER. 2022-06-27 17:21:35 +09:30
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py plugin-funder: fix typos in option lease-fee-base-msat and funder-fuzz-percent 2022-03-01 09:38:40 +10:30
test_pay.py lightningd: don't print nasty message when onchaind fails partially-failed HTLC 2022-06-27 17:21:35 +09:30
test_plugin.py pytest: fix timeout in test_option_types 2022-06-27 17:21:35 +09:30
test_wallet.py pyln-testing: use files for stdout and stderr, not threads. 2022-06-27 17:21:35 +09:30
utils.py coinmvt: don't use msats in fields not called "_msat". 2022-06-21 06:52:35 +09:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30