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

Function include_amount

common/test/run-bolt12_proof_vectors.c:110–114  ·  view source on GitHub ↗

include_amount: invreq_payer_id, invoice_payment_hash, invoice_node_id * *and* invoice_amount. This demonstrates the case where * proof_missing_hashes are NOT in ascending-type order: the left pair * [type0,type22] is entirely omitted, so its subtree hash is appended *after* * the hash for type82 (which shares the same 4-leaf subtree). The DFS * traversal resolves the right child (type82) b

Source from the content-addressed store, hash-verified

108 * the left (type0+22).
109 */
110static bool include_amount(const struct tlv_field *f, void *arg UNNEEDED)
111{
112 return include_minimal(f, arg)
113 || f->numtype == TLV_PAYER_PROOF_INVOICE_AMOUNT;
114}
115
116static void print_fields_json(const struct tlv_field *fields, size_t n,
117 bool (*include_field)(const struct tlv_field *, void *),

Callers

nothing calls this directly

Calls 1

include_minimalFunction · 0.85

Tested by

no test coverage detected