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

Function new_foreign_deposit

common/coin_mvt.c:597–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597struct chain_coin_mvt *new_foreign_deposit(const tal_t *ctx,
598 const struct bitcoin_outpoint *outpoint,
599 u32 blockheight,
600 struct amount_sat amount,
601 const char *account,
602 u64 timestamp)
603{
604 struct chain_coin_mvt *e;
605
606 e = new_chain_coin_mvt_sat(ctx, NULL, account, NULL, outpoint, NULL,
607 blockheight,
608 mk_mvt_tags(MVT_DEPOSIT, MVT_FOREIGN),
609 COIN_CREDIT,
610 amount);
611 e->timestamp = timestamp;
612 return e;
613}
614
615struct chain_coin_mvt *new_foreign_withdrawal(const tal_t *ctx,
616 const struct bitcoin_outpoint *outpoint,

Callers 1

json_injectutxodepositFunction · 0.85

Calls 1

new_chain_coin_mvt_satFunction · 0.85

Tested by

no test coverage detected