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

Function find_txout

openingd/dualopend.c:656–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656static bool find_txout(struct wally_psbt *psbt, const u8 *wscript, u32 *funding_txout)
657{
658 for (size_t i = 0; i < psbt->num_outputs; i++) {
659 if (memeq(wscript, tal_bytelen(wscript), psbt->outputs[i].script,
660 psbt->outputs[i].script_len)) {
661 *funding_txout = i;
662 return true;
663 }
664 }
665 return false;
666}
667
668static char *insufficient_err_msg(const tal_t *ctx,
669 char *error,

Callers 3

check_balancesFunction · 0.85
accepter_commitsFunction · 0.85
opener_commitsFunction · 0.85

Calls 2

memeqFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected