common: simple helpers to test for either anchor feature.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-26 08:37:21 +09:30
parent 0587cf324e
commit e036080fc5
4 changed files with 18 additions and 0 deletions

View File

@@ -159,4 +159,8 @@ struct channel_type *channel_desired_type(const tal_t *ctx,
/* Convenience for querying channel->type */
bool channel_has(const struct channel *channel, int feature);
/* Convenience for querying either anchor_outputs or anchors_zero_fee_htlc_tx */
bool channel_has_anchors(const struct channel *channel);
#endif /* LIGHTNING_COMMON_INITIAL_CHANNEL_H */