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

Function test_field

plugins/offers_invreq_hook.c:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 test_field(cmd_, ir_, ir_->invreq->fld_ == NULL, #fld_, "unexpected")
116
117static struct command_result *
118test_field(struct command *cmd,
119 const struct invreq *invreq,
120 bool test, const char *fieldname, const char *what)
121{
122 if (!test)
123 return fail_invreq(cmd, invreq, "%s %s", what, fieldname);
124 return NULL;
125}
126
127/* BOLT-recurrence #12:
128 * - if `offer_recurrence_optional` or `offer_recurrence_compulsory` are present:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected