MCPcopy Create free account
hub / github.com/ElementsProject/lightning / feature_set_dup

Function feature_set_dup

common/features.c:600–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600struct feature_set *feature_set_dup(const tal_t *ctx,
601 const struct feature_set *other)
602{
603 struct feature_set *res = tal(ctx, struct feature_set);
604
605 for (size_t i = 0; i < ARRAY_SIZE(res->bits); i++)
606 res->bits[i] = tal_dup_talarr(res, u8, other->bits[i]);
607
608 return res;
609}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected