mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common: simple helpers to test for either anchor feature.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -30,6 +30,9 @@ struct channel_type *default_channel_type(const tal_t *ctx,
|
||||
/* Does this type include this feature? */
|
||||
bool channel_type_has(const struct channel_type *type, int feature);
|
||||
|
||||
/* Convenience for querying either anchor_outputs or anchors_zero_fee_htlc_tx */
|
||||
bool channel_type_has_anchors(const struct channel_type *type);
|
||||
|
||||
/* Are these two channel_types equivalent? */
|
||||
bool channel_type_eq(const struct channel_type *a,
|
||||
const struct channel_type *b);
|
||||
|
||||
Reference in New Issue
Block a user