core-lightning/onchaind
Rusty Russell cd9ce92d28 onchaind: fix htlc_stub organization.
We get sent three corresponding arrays:
1. htlc stubs
2. whether we want to know if they're missing,
3. whether to wait 3 blocks or tell us immediately

We then sorted the htlc stubs by CLTV, *but didn't sort the corresponding arrays*.

This fixes that the simplest way possible, and probably also:

Fixes: #4649

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: onchaind: we sometimes failed to close upstream htlcs if more than one HTLC is in flight during unilateral close.
2022-03-31 13:40:27 +10:30
..
test hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
Makefile hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
onchain_types.h onchaind: recognize (and ignore) anchor outputs. 2020-08-14 11:51:14 +09:30
onchaind_wire.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
onchaind_wire.csv hsmd: Add wallet index metadata to existing messages 2022-03-10 10:22:29 +10:30
onchaind_wire.h closingd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
onchaind.c onchaind: fix htlc_stub organization. 2022-03-31 13:40:27 +10:30