Commit be4b851
committed
Add
It can be useful to get the stats on a potential commitment transaction
without actually building it. Therefore, this commit splits the stats
calculations from the actual build of a commitment transaction.
This introduces an extra loop over the pending htlcs, but current
network behavior produces very few concurrent htlcs on channels.
Furthermore, each iteration of the loop in the stats calculation is very
cheap.ChannelContext::get_commitment_stats
1 parent 5fe72b5 commit be4b851
1 file changed
Lines changed: 273 additions & 165 deletions
0 commit comments