The channel->htlcs map was exhibiting unbounded growth, as elements were never removed from it. This was causing lightning_channeld processes to consume ever-increasing amounts of memory, and iterating over the map was causing ever-increasing CPU utilization. There were FIXME comments suggesting that the intention was to remove HTLCs from the map upon their deaths. This commit implements that intention. Changelog-Fixed: channeld no longer retains dead HTLCs in memory. |
||
|---|---|---|
| .. | ||
| test | ||
| channeld_htlc.h | ||
| channeld_wire.csv | ||
| channeld.c | ||
| channeld.h | ||
| commit_tx.c | ||
| commit_tx.h | ||
| full_channel_error.h | ||
| full_channel.c | ||
| full_channel.h | ||
| Makefile | ||
| watchtower.c | ||
| watchtower.h | ||