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

Function wally_psbt_input_spends

bitcoin/psbt.c:1036–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036bool wally_psbt_input_spends(const struct wally_psbt_input *input,
1037 const struct bitcoin_outpoint *outpoint)
1038{
1039 /* Useful, as tx_part can have some NULL inputs */
1040 if (!input)
1041 return false;
1042 if (input->index != outpoint->n)
1043 return false;
1044 return CROSS_TYPE_EQ(&outpoint->txid, &input->txhash);
1045}
1046
1047void wally_psbt_input_get_outpoint(const struct wally_psbt_input *in,
1048 struct bitcoin_outpoint *outpoint)

Callers 1

sign_our_inputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected