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

Function new_foreign_withdrawal

common/coin_mvt.c:615–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615struct chain_coin_mvt *new_foreign_withdrawal(const tal_t *ctx,
616 const struct bitcoin_outpoint *outpoint,
617 const struct bitcoin_txid *spend_txid,
618 struct amount_sat amount,
619 u32 blockheight,
620 const char *account,
621 u64 timestamp)
622{
623 struct chain_coin_mvt *e;
624
625 e = new_chain_coin_mvt_sat(ctx, NULL, account, spend_txid, outpoint, NULL,
626 blockheight,
627 mk_mvt_tags(MVT_WITHDRAWAL, MVT_FOREIGN),
628 COIN_DEBIT,
629 amount);
630 e->timestamp = timestamp;
631 return e;
632}
633
634const char **mvt_tag_strs(const tal_t *ctx, struct mvt_tags tags)
635{

Callers 1

json_injectutxospendFunction · 0.85

Calls 1

new_chain_coin_mvt_satFunction · 0.85

Tested by

no test coverage detected