core-lightning/onchaind
Jon Griffiths aa23c2a2b2 script: consistently take the script length in identification functions
Standardizes the is_xxx script function all take a script length, and changes
their first-level callers to pass it. This has several knock on benefits:

- We remove the repeated tal_count/tal_bytelen calls on the script, in
  particular the redundant calls that result when we must check for multiple
  types of script - which is almost all cases.
- We remove the dependency on the memory being tal-allocated (It is, in
  all cases, but theres no reason we need to require that).
- We remove all cases where we create a copy of the script just to id it.
- We remove all allocations for non-interesting scripts while iterating block
  txs in process_getfilteredblock_step1().
- We remove all allocations *including for potentially interesting scripts* in
  topo_add_utxos().

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
2024-03-18 12:24:49 +10:30
..
test common/memleak: implement callback arg for dump_memleak. 2023-10-03 10:05:55 +02:00
Makefile onchaind/onchaind_wire.c duplicated in ONCHAIND_SRC 2022-09-23 14:40:29 +09:30
onchain_types.h onchaind: recognize (and ignore) anchor outputs. 2020-08-14 11:51:14 +09:30
onchaind.c script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10: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 onchaind: don't grind for htlc fees if option_anchors_zero_fee_htlc_tx set. 2023-06-29 11:28:47 -04:00
onchaind_wire.h closingd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30