All nodes are connected linearly, so tx relay not only makes the test slow, but also intermittently failing (timing out). Fixes #18969.
Fix both issues by enabling immediate tx relay.
All nodes are connected linearly, so tx relay not only makes the test slow, but also intermittently failing (timing out). Fixes #18969.
Fix both issues by enabling immediate tx relay.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Linear transaction relay is a feature. We want to make sure new nodes don’t ban old nodes and vice versa. Especially if we add some interesting transactions to this test.
I would prefer if there was a more fine grained permission than PF_NOBAN
to avoid delay: bool fSendTrickle = pto->HasPermission(PF_NOBAN);
. If that takes too long, then a // TODO
in the test is fine too.
Oh I think I misread the description: I though you wanted to get rid of linear relay, but you’re just getting rid of the random delays. That’s fine.
I cherry-picked this into #19013, which would save me from having to rebase this across lots of commits.
Tested ACK fa685965a1cb119d95a80e6c6100fca63861ed85
As expected and mentioned in the PR description, this fix also speeds up the test tremendously. On my Debian machine:
master:
0$ time ./test/functional/feature_backwards_compatibility.py
1real 1m18.605s
2user 0m3.054s
3sys 0m1.593s
PR branch:
0$ time ./test/functional/feature_backwards_compatibility.py
1real 0m5.541s
2user 0m1.875s
3sys 0m1.220s
🐙 This pull request conflicts with the target branch and needs rebase.
Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a “draft”.
MarcoFalke
DrahtBot
Sjors
theStack
Labels
Tests
Needs rebase