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

Function exclude_this

common/test/run-bolt12_proof.c:80–88  ·  view source on GitHub ↗

Returns true to include the field */

Source from the content-addressed store, hash-verified

78
79/* Returns true to include the field */
80static bool exclude_this(const struct tlv_field *f, ptrint_t *p)
81{
82 /* We always exclude 0! */
83 if (f->numtype == 0)
84 return false;
85 if (f->numtype == ptr2int(p))
86 return false;
87 return true;
88}
89
90static bool sign(const char *messagename,
91 const char *fieldname,

Callers

nothing calls this directly

Calls 1

ptr2intFunction · 0.85

Tested by

no test coverage detected