mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user