Rusty Russell
cfb320c972
wire: move remaining bitcoin functions out to bitcoin/ files.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-05-18 14:51:12 +02:00
Christian Decker
1b32cc1c73
wire: Add a function to serialize a raw set of TLV fields
...
The generated wrappers will ignore the raw fields and will only consider the
shortcut fields. This function takes the raw fields and serializes them
instead.
2020-04-16 18:03:35 +09:30
Christian Decker
db92c2ac5e
tlv: Remove unused TLV deserialization function
2019-12-03 00:37:15 +00:00
Christian Decker
5a78671d9f
wire: Remove unused fromwire_tlvs
...
We are now using the typesafe variant everywhere.
2019-12-03 00:37:15 +00:00
Rusty Russell
0da074cad3
BOLT: update bolt quotes now that TLVs are not experimental.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-22 01:17:11 +00:00
Rusty Russell
296cfe8d1b
wire/tlvstream: suppress gcc -O3 warning about prev_type.
...
Use a pointer, so it's explicit and gcc is happy. We avoid the
allocation by pointing it to another stack var.
./wire/tlvstream.c:81:22: error: ‘prev_type’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-08-02 15:56:15 +02:00
lisa neigut
64b43dd060
wire-gen: allow NULL for a tlv record in towire
...
Allowing signaling of no TLV with NULL
2019-07-27 05:18:27 +00:00
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>
2019-07-18 06:51:35 +00:00
Rusty Russell
7cf0006c78
wire/tlvstream: routines to marshal/unmarshal TLV streams.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-07-18 06:51:35 +00:00