lisa neigut
3f1f075421
tools: add ability to wrap wire messages with ifs
Makes it possible to hide wire messages behind EXPERIMENTAL_FEATURES
flag.
5 years ago
Rusty Russell
b10e0e08bb
tools/generate-wire.py: add option to expose tlv_record_type
Next update adds TLV test vectors: without this, we get a warning
about them being unused.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
lisa neigut
b6d4c372bb
bolt-gen: fix broken 'exposed subtype' generation
borked in 96bf7aea; fixed here.
6 years ago
lisa neigut
068496298c
bolt-gen: rm unused bolt-generator; rename new bolt generator
delete now unused wire-generator and replace it with the newer
version.
6 years ago
lisa neigut
4261e508a9
bolt-gen: add TLV support
Add in support for buiding TLV's (minus the printing capability)
6 years ago
lisa neigut
f2819ba7d8
bolt-gen: remove 'is-optional' qualifier from msg field
we now handle optional fields, so we should include them in
the message parsing signatures
6 years ago
lisa neigut
96bf7aead5
bolt-gen: handle variable-sized and optionals
actually do the right thing for variable-sized and optional field
types
6 years ago
lisa neigut
fe3f4f52a0
bolt-gen: handle csv inline comments
The bolts don't have in-line comments, but the internal wire
message CSVs do. This adds the 'comments' back in to the
generated docs.
6 years ago
lisa neigut
d7a68b75f1
bolt-gen: fixup broken subtype parsing
6 years ago
lisa neigut
6c240ab589
bolts: new parsing script and templates for new bolt format
the RFC's extract-format.py is switching to a new format.
this script can correctly parse them.
mostly moves logic over from generate-wire.py, uses a
Python formatting libarary called mako, which needs to be
installed prior to running this script.
you can add it to your system with
sudo apt-get install python3-mako
6 years ago