rgb-cln/wire
Rusty Russell 46cc7c281e features: more general accessor functions.
As we add more features, the current code is insufficient.

1. Keep an array of single feature bits, for easy switching on and off.
2. Create feature_offered() which checks for both compulsory and optional
   variants.
3. Invert requires_unsupported_features() and unsupported_features()
   which tend to be double-negative, all_supported_features() and
   features_supported().
4. Move single feature definition from wire/peer_wire.h to common/features.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-03-14 02:19:37 +00:00
..
test short_channel_id: just use structeq. 2018-03-01 23:33:56 +01:00
Makefile generate-wire.py: add --bolt arg, use size->type hacks only when that's specified. 2017-09-29 14:40:34 +02:00
fromwire.c short_channel_id: don't use bitfields. 2018-03-01 23:33:56 +01:00
gen_onion_wire_csv pay: make sure we don't think payment in progress if it immediately fails. 2017-12-19 14:40:26 +01:00
gen_peer_wire_csv channeld: don't use ccan/io, go sync. 2017-12-02 12:54:12 +01:00
onion_defs.h wire: split onion messages from peer wire messages. 2017-01-06 13:40:35 +10:30
peer_wire.c gossip: rename is_gossip_msg to is_msg_for_gossipd. 2018-03-13 16:34:55 +01:00
peer_wire.h features: more general accessor functions. 2018-03-14 02:19:37 +00:00
towire.c short_channel_id: don't use bitfields. 2018-03-01 23:33:56 +01:00
wire.h gossip: formalize passing of siphash_seed. 2018-02-26 06:35:02 +00:00
wire_io.c wire: restore BE endian to wire headers for internal messages. 2017-09-29 14:40:34 +02:00
wire_io.h wire: Fix include order in wire_io.h 2017-09-29 14:40:34 +02:00
wire_sync.c wire: restore BE endian to wire headers for internal messages. 2017-09-29 14:40:34 +02:00
wire_sync.h wire_sync_write: support take() 2017-06-27 10:25:53 +09:30