mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +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:
@@ -182,6 +182,11 @@ bool channel_has(const struct channel *channel, int feature)
|
||||
return channel_type_has(channel->type, feature);
|
||||
}
|
||||
|
||||
bool channel_has_anchors(const struct channel *channel)
|
||||
{
|
||||
return channel_type_has_anchors(channel->type);
|
||||
}
|
||||
|
||||
static char *fmt_channel_view(const tal_t *ctx, const struct channel_view *view)
|
||||
{
|
||||
return tal_fmt(ctx, "{ owed_local=%s,"
|
||||
|
||||
Reference in New Issue
Block a user