Browse Source
The test sometimes passes: our routing logic always chooses between the shorter of two equal-cost routes (because we compare best with < not <=). By adding another hop, we add more noise, and by making the alternate route fee 0 we provide the worst case. But to be fair, we make the amount of the payment ~50c (15,000,000 msat), and increase our cltv-delay to 14 and fee-base 1000 to match mainnet. The final patch shows the effect of this choice. Otherwise our risk penalty is completely in the noise on mainnet which has the vast majority of fees set at 1000msat + 1ppm. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>fix-test_pay_direct-flake
Rusty Russell
6 years ago
committed by
Christian Decker
1 changed files with 18 additions and 8 deletions
Loading…
Reference in new issue