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

Function bitcoin_tx_output_get_amount_sat

bitcoin/tx.c:312–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void bitcoin_tx_output_get_amount_sat(const struct bitcoin_tx *tx, int outnum,
313 struct amount_sat *amount)
314{
315 struct amount_asset asset_amt;
316 asset_amt = bitcoin_tx_output_get_amount(tx, outnum);
317 assert(amount_asset_is_main(&asset_amt));
318 *amount = amount_asset_to_sat(&asset_amt);
319}
320
321void bitcoin_tx_input_set_witness(struct bitcoin_tx *tx, int innum,
322 u8 **witness)

Callers 2

proposal_should_rbfFunction · 0.85
run_tx_interactiveFunction · 0.85

Calls 3

amount_asset_is_mainFunction · 0.50
amount_asset_to_satFunction · 0.50

Tested by

no test coverage detected