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

Function psbt_input_index

wallet/walletrpc.c:1118–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1116}
1117
1118static u32 psbt_input_index(const struct wally_psbt *psbt, size_t index)
1119{
1120 if (psbt->version == WALLY_PSBT_VERSION_0)
1121 return psbt->tx->inputs[index].index;
1122 return psbt->inputs[index].index;
1123}
1124
1125static u32 psbt_input_sequence(const struct wally_psbt *psbt, size_t index)
1126{

Callers 1

psbt_equivalentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected