| 298 | } |
| 299 | |
| 300 | const 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 | |
| 313 | const char *channel_event_description(const struct bkpr *bkpr, |
| 314 | const struct channel_event *ce) |
no test coverage detected