core-lightning/devtools
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
..
.gitignore Add rune and commando to gitignore. 2022-07-19 15:29:26 +09:30
blockreplace.py tools: Add yml mode to blockreplace.py 2023-03-25 15:40:35 +10:30
bolt11-cli.c script: consistently take the script length in identification functions 2024-03-18 12:24:49 +10:30
bolt12-cli.c common: helper to generate bolt12 test vector bolt12/offers-test.json. 2023-09-21 13:31:03 +09:30
bolt-catchup.sh devtools/bolt-catchup.sh: a tool to update the specs, one commit at a time. 2022-09-12 09:34:52 +09:30
changelog.py devtools: Deduplicate links from linkify 2024-01-15 18:36:01 +01:00
checkchannels.c common: add tal_arr_eq helper. 2024-02-16 15:02:38 +01:00
clean_topo.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
clean_topo.h devtools/topology: new tool to explore lightning topology. 2020-08-28 10:56:50 +09:30
create-gossipstore.c BOLT: update to version which requires option_channel_htlc_max. 2022-09-24 15:22:27 +09:30
credit devtools/credit: ! not ^ to invert the match set in sh. 2023-07-31 17:17:15 +09:30
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c devtools: call common_setup in main 2023-06-05 16:16:21 +02:00
dump-gossipstore.c devtools: remove warning message from dump-gossipstore. 2024-02-12 11:43:33 +01:00
encodeaddr.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
features.c devtools/features: tool to convert feature bitmap to names. 2021-09-23 15:02:05 +02:00
fp16.c devtools/fp16: conversion tool for fp16 format. 2022-03-22 18:45:41 +10:30
gossipwith.c tools/gossipwith: shutdown, don't close, TCP socket. 2023-06-20 17:24:48 +09:30
lightning-checkmessage.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
Makefile signed types: add handlers for signed types 2023-07-13 19:34:47 +09:30
mkclose.c global: thread zero fee option everywhere. 2023-06-29 11:28:47 -04:00
mkcommit.c channeld: tell lightningd about local anchor for each commitment tx. 2023-10-27 11:19:56 +10:30
mkencoded.c Makefile: update to BOLTs without zlib. 2022-05-19 09:47:32 +09:30
mkfunding.c mkfunding: no scriptPubKey on utxo causing crash, so we add one 2022-11-01 18:23:00 +01:00
mkgossip.c BOLT: update to version which requires option_channel_htlc_max. 2022-09-24 15:22:27 +09:30
mkquery.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onion.c common: add tal_arr_eq helper. 2024-02-16 15:02:38 +01:00
print_wire.c devtools/print_wire: long long instead of longing 2023-07-24 15:24:05 +09:30
print_wire.h signed types: add handlers for signed types 2023-07-13 19:34:47 +09:30
reduce-includes.sh check: fix warnings from shellcheck 0.8.0 2022-11-09 15:08:03 +01:00
route.c devtools: call common_setup in main 2023-06-05 16:16:21 +02:00
rune.c devtools/rune: simple decode tool. 2022-07-17 08:51:02 +09:30
sql-rewrite.py db: Backfill missing HTLC IDs in the forwards table 2022-11-28 14:47:43 +01:00
taldump-analyze.py devtools/taldump-analyze.py: script to analyze tal_dump() output. 2021-11-27 10:38:13 +10:30
topology.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
unused-functions.sh devtools: simple script to look for functions which don't seem to be used. 2021-12-06 10:05:39 +10:30