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

Function new_coin_external_spend

common/coin_mvt.c:517–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517struct chain_coin_mvt *new_coin_external_spend(const tal_t *ctx,
518 const struct bitcoin_outpoint *outpoint,
519 const struct bitcoin_txid *txid,
520 u32 blockheight,
521 struct amount_sat amount,
522 struct mvt_tags tags)
523{
524 return new_chain_coin_mvt(ctx, NULL, ACCOUNT_NAME_EXTERNAL,
525 coinmvt_current_time(), txid,
526 outpoint, NULL, blockheight,
527 tags,
528 COIN_CREDIT, AMOUNT_MSAT(0), amount, 0);
529}
530
531struct chain_coin_mvt *new_coin_external_deposit(const tal_t *ctx,
532 const struct bitcoin_outpoint *outpoint,

Callers

nothing calls this directly

Calls 2

new_chain_coin_mvtFunction · 0.85
coinmvt_current_timeFunction · 0.85

Tested by

no test coverage detected