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

Function preimage_of

devtools/mkcommit.c:207–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static const struct preimage *preimage_of(const struct sha256 *hash,
208 const struct existing_htlc **htlcs)
209{
210 for (size_t i = 0; i < tal_count(htlcs); i++)
211 if (sha256_eq(hash, &htlcs[i]->payment_hash))
212 return htlcs[i]->payment_preimage;
213 abort();
214}
215
216static char *sig_as_hex(const struct bitcoin_signature *sig)
217{

Callers 1

mainFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected