lightning/devtools
Rusty Russell d8c06dccac global: expose all fmt_X functions for direct use, make uniform.
We have various functions to convert to a string, rename them all so we can
count on fmt_X being the formatter for struct X, and make them all return
`char *`.

Sometimes they existed but were private, sometimes they had a
different name.  Most take a pointer, but simple types pass by copy:
short_channel_id, amount_msat and amount_sat.

The following public functions changed:
1. psbt_to_b64 -> fmt_wally_psbt.
2. pubkey_to_hexstr -> fmt_pubkey.
3. short_channel_id_to_str -> fmt_short_channel_id (scid by copy now!)
4. fmt_signature -> fmt_secp256k1_ecdsa_signature
5. fmt_amount_sat/fmt_amount_msat pass copy not pointer, return non-const char *.
6. node_id_to_hexstr -> fmt_node_id

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-03-20 13:51:48 +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 global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
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 global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +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 global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
mkquery.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onion.c global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10:30
print_wire.c global: expose all fmt_X functions for direct use, make uniform. 2024-03-20 13:51:48 +10: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