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

Function wally_tx_output_scripteq

onchaind/onchaind.c:177–181  ·  view source on GitHub ↗

helper to compare output script with our tal'd script */

Source from the content-addressed store, hash-verified

175
176/* helper to compare output script with our tal'd script */
177static bool wally_tx_output_scripteq(const struct wally_tx_output *out,
178 const u8 *script)
179{
180 return memeq(out->script, out->script_len, script, tal_bytelen(script));
181}
182
183/* The feerate for the HTLC txs (which we grind) are the same as the
184 * feerate for the main tx. However, there may be dust HTLCs which

Callers 6

record_mutual_closeFunction · 0.85
is_mutual_closeFunction · 0.85
handle_our_unilateralFunction · 0.85
handle_their_cheatFunction · 0.85
handle_their_unilateralFunction · 0.85

Calls 2

memeqFunction · 0.85
tal_bytelenFunction · 0.85

Tested by

no test coverage detected