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

Function psbt_output_script

wallet/walletrpc.c:1110–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110static const u8 *psbt_output_script(const struct wally_psbt *psbt, size_t index)
1111{
1112 if (psbt->version == WALLY_PSBT_VERSION_0)
1113 return psbt->tx->outputs[index].script;
1114 return psbt->outputs[index].script;
1115}
1116
1117/* We consider two PSBTs *equivalent* if they have the same inputs and outputs */
1118static bool psbt_equivalent(const struct wally_psbt *a,

Callers 1

psbt_equivalentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected