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

Function resolve_omitted

common/bolt12_proof.c:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static void resolve_omitted(struct sha256 *hash, struct checker *checker)
279{
280 if (checker->missing_hashes_n >= tal_count(checker->pptlv->proof_missing_hashes)) {
281 checker->missing_hashes_exhausted = true;
282 *hash = dummy_hash();
283 } else {
284 *hash = checker->pptlv->proof_missing_hashes[checker->missing_hashes_n++];
285 }
286}
287
288static bool find_tlv_num(const struct tlv_payer_proof *pptlv, bigsize_t num)
289{

Callers 1

merkle_recurseFunction · 0.85

Calls 1

dummy_hashFunction · 0.85

Tested by

no test coverage detected