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

Function amount_asset_is_main

common/amount.c:571–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571bool amount_asset_is_main(struct amount_asset *amount)
572{
573 /* If we're not on elements, there is only one asset. */
574 if (!chainparams->is_elements)
575 return true;
576
577 /* If we are on elements we better check against the chainparams. */
578 return memeq(amount->asset, sizeof(amount->asset),
579 chainparams->fee_asset_tag, sizeof(amount->asset));
580}
581
582/* Convert from a generic asset to the fee-paying asset if possible. */
583struct amount_sat amount_asset_to_sat(struct amount_asset *amount)

Callers 15

amount_asset_to_satFunction · 0.70
trim_maximum_feerateFunction · 0.50
set_htlc_timeout_feeFunction · 0.50
set_htlc_success_feeFunction · 0.50
resolve_htlc_txFunction · 0.50
steal_htlc_txFunction · 0.50
handle_our_unilateralFunction · 0.50
tell_wallet_to_remoteFunction · 0.50
handle_their_cheatFunction · 0.50
handle_their_unilateralFunction · 0.50
json_transaction_detailsFunction · 0.50

Calls 1

memeqFunction · 0.85

Tested by

no test coverage detected