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

Function notify_chain_mvt

lightningd/coin_mvts.c:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void notify_chain_mvt(struct lightningd *ld, const struct chain_coin_mvt *mvt)
24{
25 const struct coin_mvt *cm;
26 u32 timestamp;
27
28 timestamp = time_now().ts.tv_sec;
29 cm = finalize_chain_mvt(mvt, mvt, chainparams->onchain_hrp,
30 timestamp, &ld->id);
31 notify_coin_mvt(ld, cm);
32}
33
34struct channel_coin_mvt *new_channel_mvt_invoice_hin(const tal_t *ctx,
35 struct htlc_in *hin,

Callers 4

record_wallet_spendFunction · 0.70
onchain_add_utxoFunction · 0.70
channel_record_openFunction · 0.70

Calls 3

time_nowFunction · 0.85
finalize_chain_mvtFunction · 0.85
notify_coin_mvtFunction · 0.85

Tested by

no test coverage detected