Rusty Russell
f6a4e79420
global: remove unnecessary includes from headers.
...
Each header should only include the other headers it needs to compile;
`devtools/reduce-includes.sh */*.h` does this. The C files then need
additional includes if they don't compile.
And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2025-10-23 06:44:04 +10:30
Rusty Russell
e38f5d8c27
common: provide readable explanation when onion payload is invalid.
...
I had to use fprintf, which is terrible.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2024-11-20 12:29:27 +01:00
Rusty Russell
45533584e2
global: rename blinding to path_key everywhere.
...
Get with the modern nomenclature: the pubkey inside a blinded path is called
the `path_key` now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2024-10-16 07:14:32 +10:30
Rusty Russell
162ebe2a72
global: we always offer OPT_ROUTE_BLINDING, don't need to test.
...
We did since v23.05.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2024-07-09 15:09:29 +02:00
Rusty Russell
8720bbedae
common/onion: split into decode and encode routines.
...
Some places (e.g. the pay plugin) only need to construct onions,
not decode them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2022-11-09 15:08:03 +01:00