pickhardtpayments icon indicating copy to clipboard operation
pickhardtpayments copied to clipboard

Update knowlege in both directions

Open renepickhardt opened this issue 3 years ago • 1 comments

if we learn something from a channel in direction A --> B we currently update the A-->B arc in the uncertainty network. However we also learn something about the B-->A arc which we completely neglect as of now. This should be fixed before the release

renepickhardt avatar May 06 '22 07:05 renepickhardt

BTW. we have this in renepay plugin, here flow.h. We first realized that a bound in the liquidity [a,b), meaning that the liquidity satisfies a<=l0<b, implies that the liquidity in the opposite direction l1 is bounded by [a',b'), where c is the capacity of the channel, a'=c-b and b'=c-a.

When knowledge is updated in one direction, we update the [a,b) and we recompute [a',b').

Lagrang3 avatar Aug 03 '23 14:08 Lagrang3