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

Function towire_feature_set

common/features.c:577–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void towire_feature_set(u8 **pptr, const struct feature_set *fset)
578{
579 for (size_t i = 0; i < ARRAY_SIZE(fset->bits); i++) {
580 towire_u16(pptr, tal_bytelen(fset->bits[i]));
581 towire_u8_array(pptr, fset->bits[i], tal_bytelen(fset->bits[i]));
582 }
583}
584
585const char *fmt_featurebits(const tal_t *ctx, const u8 *featurebits)
586{

Callers

nothing calls this directly

Calls 3

tal_bytelenFunction · 0.85
towire_u16Function · 0.50
towire_u8_arrayFunction · 0.50

Tested by

no test coverage detected