core-lightning/wire
Rusty Russell e076d56709 generate-wire.py: include type bytes in towire/fromwire routines.
This removes some redundancy in creating messages, but also allows
a lazy form or parsing without explicitly checking the type.

A helper fromwire_peektype() is added to look up the type and handle
the too-short-for-type problem.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-04 14:09:21 +10:30
..
test generate-wire.py: include type bytes in towire/fromwire routines. 2017-01-04 14:09:21 +10:30
fromwire.c generate-wire.py: include type bytes in towire/fromwire routines. 2017-01-04 14:09:21 +10:30
gen_peer_wire_csv generate-wire.py: generalize, move to tools. 2017-01-04 14:09:20 +10:30
Makefile generate-wire.py: generalize, move to tools. 2017-01-04 14:09:20 +10:30
towire.c generate-wire.py: don't generate structures, hand in all values. 2017-01-04 14:09:20 +10:30
wire.h generate-wire.py: include type bytes in towire/fromwire routines. 2017-01-04 14:09:21 +10:30