Rusty Russell
8150d28575
Makefile: use generic rules to make spec-derived sources.
Now we use the same Makefile rules for all CSV->C generation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4 years ago
Rusty Russell
cfb320c972
wire: move remaining bitcoin functions out to bitcoin/ files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
fda5f0b427
common/channel_id: move channel_id into its own file.
The definition was in wire/wire.h, and helper functions in fromwire.c!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
b0c9059602
tools/generate-wire: no more lonely messages!
When we have only a single member in a TLV (e.g. an optional u64),
wrapping it in a struct is awkward. This changes it to directly
access those fields.
This is not only more elegant (60 fewer lines), it would also be
more cache friendly. That's right: cache hot singles!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Christian Decker
db92c2ac5e
tlv: Remove unused TLV deserialization function
5 years ago
Christian Decker
626675c83c
tlv: Migrate tlv serialization to typesafe function
5 years ago
Christian Decker
838001af4c
tlv: Migrate run-tlvstream to typesafe helpers
5 years ago
Rusty Russell
0da074cad3
BOLT: update bolt quotes now that TLVs are not experimental.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
5 years ago
Rusty Russell
fafd5ed4b0
wire/test/run-tlvstream.c: use generated defs for test vectors.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Rusty Russell
cc70b9c4ec
wire: use common/bigsize routines
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Rusty Russell
3477034657
tests: add test for tlvstream (from BOLT 1 test vectors).
https://github.com/lightningnetwork/lightning-rfc/pull/631
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago