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

Function find_txout

openingd/dualopend.c:560–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static bool find_txout(struct wally_psbt *psbt, const u8 *wscript, u32 *funding_txout)
561{
562 for (size_t i = 0; i < psbt->num_outputs; i++) {
563 if (memeq(wscript, tal_bytelen(wscript), psbt->tx->outputs[i].script,
564 psbt->tx->outputs[i].script_len)) {
565 *funding_txout = i;
566 return true;
567 }
568 }
569 return false;
570}
571
572static char *check_balances(const tal_t *ctx,
573 struct state *state,

Callers 4

check_balancesFunction · 0.85
accepter_commitsFunction · 0.85
opener_commitsFunction · 0.85
channel_sizeFunction · 0.85

Calls 2

memeqFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected