eclair
eclair copied to clipboard
Fix blinded path amount to forward calculation
Apply @rustyrussell's neat truncating integer arithmetic formula to calculate the amount that should be forwarded by blinded path nodes instead of our previous approximation.
This simply expands ceil(a/b) as (a+b-1)/b and provides better results in practice (I ran a simulation with many values for fees and amount).