Skip to content

Commit ea037a3

Browse files
committed
Add ChannelContext::get_commitment_stats
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.
1 parent ff259ba commit ea037a3

File tree

1 file changed

+192
-117
lines changed

1 file changed

+192
-117
lines changed

0 commit comments

Comments
 (0)