Fixed assertion in pay plugin - #3856
Conversation
|
It is acceptable of course. You need a You also probably want to add the text "Fixes: #3855" to the commit message and the original comment you put above, so that merging this change auto-closes #3855 I am writing a test to tickle this bug, I suggest putting it in as well, please wait.. |
This PR includes the fix discussed on PR ElementsProject#3855. This fix was tested with the use case described inside the issue and worked. Fixes: ElementsProject#3855 Changelog-None
|
Hi @vincenzopalazzo I have a branch with the proposed fixes to your commit message, as well as the test, which I have confirmed catches this bug and also confirms the fix is working. ZmnSCPxj@1e62ac0 Will push into this PR. |
cb9569e to
1e62ac0
Compare
|
Force pushed. Let us leave to @cdecker for review. |
|
Hi @ZmnSCPxj
I think no 😄 |
|
Already added when I force-pushed into your PR. Moar tests == better as well. |
|
Excellent work @vincenzopalazzo and @ZmnSCPxj, this is very much appreciated, but I could hit myself for not thinking of this myself :-) Anyway, this works greate and I'll ACK it as soon as CI reports that it is working 👍 |
|
CI seems to catch another bug, where we somehow trigger the paymod system to split the payment into tiny, tiny, tiny parts and then things start collapsing due to the load of handling lots of tiny tiny parts. |
|
I suggest adding a reset of some kind to |
|
Having a split limiter is definitely a good idea, though we already have that indirectly via the fee and cltv budgets that get split into smaller and smaller pieces. I think it's probably best not to automatically retry, since that would most likely lead down the same path. Rather we should optimize the first tree in such a way that any retry of the root would be superfluous anyway. There's just loads of parameters we can tweak here, and we're just getting started :-) |
|
Rusty and I are working on fixing those other issues, reported by testers, and fix up the CI runs btw, so I'll rebase this PR on top of those so we can make sure this works as expected (which I'm pretty sure looking at the change anyway) |
|
Suggest cherry-picking this on top of #3857 and then closing this then, seems we need a bit more tests and so on for |
|
Will do 👍 |
|
Cherry-picked on top of #3857 as suggested |
Hi all,
I don't know if this type of PR is welcome, if no, I'm so sorry.
This PR includes the fix discussed on PR #3855. This fix was tested with the use case described inside the issue and worked.