core-lightning/wallet
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 hsmd: remove deprecated init v2 2024-02-27 14:04:44 +01:00
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
db.c wallet: ensure all established channels have aliases. 2024-02-08 14:15:57 +01:00
db.h db: migrate old runes table to fix up id fields. 2023-08-31 05:33:15 +09:30
invoices.c display paid_outpoint on invoices when present 2023-10-26 19:11:17 +10:30
invoices.h display paid_outpoint on invoices when present 2023-10-26 19:11:17 +10:30
Makefile wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
psbt_fixup.c wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
psbt_fixup.h wallet/psbt_fixup: routine to fix invalid PBSTs which modern libwally won't load. 2023-03-31 09:16:25 +10:30
reservation.c common: add tal_arr_eq helper. 2024-02-16 15:02:38 +01:00
txfilter.c common: add tal_arr_eq helper. 2024-02-16 15:02:38 +01:00
txfilter.h track fallbacks for invoices, pt 1 2023-10-26 19:11:17 +10:30
wallet.c script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
wallet.h script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
walletrpc.c script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
walletrpc.h wallet: remove P2SH support. 2024-01-26 10:30:22 +10:30