| 102 | } |
| 103 | |
| 104 | static void cstat_accumulate(struct channel *c, |
| 105 | struct amount_msat *val, |
| 106 | struct amount_msat msat) |
| 107 | { |
| 108 | if (!amount_msat_add(val, *val, msat)) |
| 109 | log_broken(c->log, "Adding %s to stat %s overflowed!", |
| 110 | fmt_amount_msat(tmpctx, *val), |
| 111 | fmt_amount_msat(tmpctx, msat)); |
| 112 | } |
| 113 | |
| 114 | static void channel_stats_incr_in_fulfilled(struct channel *c, |
| 115 | struct amount_msat msat) |
no test coverage detected