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

Function new_coin_wallet_withdraw

common/coin_mvt.c:559–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559struct chain_coin_mvt *new_coin_wallet_withdraw(const tal_t *ctx,
560 const struct bitcoin_txid *spend_txid,
561 const struct bitcoin_outpoint *outpoint,
562 u32 blockheight,
563 struct amount_sat amount,
564 struct mvt_tags tags)
565{
566 return new_chain_coin_mvt_sat(ctx, NULL, ACCOUNT_NAME_WALLET, spend_txid,
567 outpoint, NULL,
568 blockheight, tags,
569 COIN_DEBIT, amount);
570}
571
572struct channel_coin_mvt *new_coin_channel_push_general(const tal_t *ctx,
573 const struct channel *channel,

Callers 1

record_wallet_spendFunction · 0.85

Calls 1

new_chain_coin_mvt_satFunction · 0.85

Tested by

no test coverage detected