mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
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>