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

Function psbt_output_amount

wallet/walletrpc.c:1096–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096static u64 psbt_output_amount(const struct wally_psbt *psbt, size_t index)
1097{
1098 if (psbt->version == WALLY_PSBT_VERSION_0)
1099 return psbt->tx->outputs[index].satoshi;
1100 return psbt->outputs[index].amount;
1101}
1102
1103static size_t psbt_output_scriptlen(const struct wally_psbt *psbt, size_t index)
1104{

Callers 1

psbt_equivalentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected