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

Function chain_event_description

plugins/bkpr/descriptions.c:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300const char *chain_event_description(const struct bkpr *bkpr,
301 const struct chain_event *ce)
302{
303 const struct utxo_desc *ud;
304
305 /* We only put descriptions on the *credit* events */
306 if (amount_msat_is_zero(ce->credit))
307 return NULL;
308
309 ud = utxo_desc_htable_get(bkpr->descriptions->by_utxo, &ce->outpoint);
310 return ud ? ud->desc : NULL;
311}
312
313const char *channel_event_description(const struct bkpr *bkpr,
314 const struct channel_event *ce)

Callers 2

json_add_chain_eventFunction · 0.70
chain_to_incomeFunction · 0.70

Calls 1

amount_msat_is_zeroFunction · 0.85

Tested by

no test coverage detected