cln/tests
Rusty Russell 2bf1053cdb offers: update block height correctly.
As we can see from the previous test, l3 tells us why it rejected the payment:

```
lightningd-3 2024-11-19T03:56:27.151Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Failing HTLC because of an invalid payload (TLV 10 pos 104): cltv_expiry 136 > payment_constraint 130
```

It turns out, we were not updating the block height in the plugin!

Without this, when we create a (non-dummy) blinded path we set a
too-low CLTV restriction, and it doesn't work after a few blocks!

Note we were actually triggering this error in the xpay tests!

Reported-by: Vincenzo Palazzo
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Offers: Receiving bolt12 payments where we have no public channels would fail a few blocks after startup.
2024-11-20 12:29:27 +01:00
..
data tests/data: add compressd canned gossip from mainnet. 2024-10-04 08:47:53 +09:30
fuzz shellcheck: shellcheck fixes 2024-11-19 09:05:55 +10:30
plugins common: provide readable explanation when onion payload is invalid. 2024-11-20 12:29:27 +01:00
vectors pytest: Remove onion test vectors containing legacy onions. 2022-03-18 09:20:11 +10:30
autogenerate-rpc-examples.py pytest: fix test_pay tests now we've deprecated experimental-offers. 2024-11-20 17:34:24 +10:30
benchmark.py pytest: always provide payment_secret when making payments. 2021-07-14 14:38:00 -05:00
conftest.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
fixtures.py pytest: use --developer instead of environment variable. 2023-09-21 20:08:24 +09:30
rkls_github_canned_server.py pytest: add blackbox tests for reckless 2023-04-09 12:41:11 +09:30
test_askrene.py xpay: make the xpay layer persistent. 2024-11-18 11:03:26 +10:30
test_bookkeeper.py pytest: don't set experimental-offers in tests: it's the default now. 2024-11-18 10:42:54 +01:00
test_cln_rs.py lightningd: deprecate decodepay. 2024-11-17 14:21:23 +10:30
test_clnrest.py tests: adjust cln-grpc tests for new default start 2024-11-12 09:43:54 +10:30
test_closing.py pytest: adapt tests to avoid deprecated APIs in close (tx and txid). 2024-11-17 16:04:06 +10:30
test_connection.py pytest: fix flake in test_wumbo_channels 2024-11-19 17:51:18 +10:30
test_db.py pytest: adapt tests to avoid deprecated APIs in close (tx and txid). 2024-11-17 16:04:06 +10:30
test_gossip.py pytest: fix flake in test_gossip_pruning 2024-11-19 17:51:18 +10:30
test_invoices.py lightningd: deprecate decodepay. 2024-11-17 14:21:23 +10:30
test_misc.py pytest: try to fix flake in test_lightningd_still_loading 2024-11-19 17:51:18 +10:30
test_mkfunding.py pytest: add tests for devtools/mkfunding 2023-01-09 14:50:30 -06:00
test_onion.py lightningd: remove support for legacy onion format. 2022-03-18 09:20:11 +10:30
test_opening.py xpay: make the xpay layer persistent. 2024-11-18 11:03:26 +10:30
test_pay.py offers: update block height correctly. 2024-11-20 12:29:27 +01:00
test_plugin.py pytest: fix race in test_autoclean. 2024-11-19 17:51:18 +10:30
test_reckless.py test: Fixed test plugin source paths for reckless 2024-11-19 09:06:28 +10:30
test_renepay.py renepay: add test for description interface 2024-11-06 09:59:27 +01:00
test_restart.py channeld: Add aggressive restart test 2024-11-17 15:32:28 +10:30
test_runes.py pytest: don't set experimental-offers in tests: it's the default now. 2024-11-18 10:42:54 +01:00
test_splice.py bkpr: add bookkeeping assertions to splice in + out tests 2024-11-17 14:25:29 +10:30
test_splicing.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_splicing_disconnect.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_splicing_insane.py splice: Allow splice_update to return signatures 2024-11-12 06:42:52 +10:30
test_wallet.py pytest: fix hsmtool which reports leak under address sanitizer. 2024-11-17 14:09:10 +10:30
test_xpay.py offers: update block height correctly. 2024-11-20 12:29:27 +01:00
utils.py bkpr: add bookkeeping assertions to splice in + out tests 2024-11-17 14:25:29 +10:30
valgrind-suppressions.txt pytest: Use valgrind target suppressions instead of skipping tests 2022-03-10 10:21:41 +10:30