Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jun 19, 2020

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.

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 20, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #19013 (test: add v0.20.1, v0.21.0 and v22.0 to backwards compatibility test by Sjors)

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.

@Sjors
Copy link
Member

Sjors commented Jun 23, 2020

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.

@maflcko
Copy link
Member Author

maflcko commented Dec 15, 2021

Rebased and removed mention of travis in the pull request description

@Sjors
Copy link
Member

Sjors commented Dec 16, 2021

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.

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK fa68596

As expected and mentioned in the PR description, this fix also speeds up the test tremendously. On my Debian machine:

master:

$ time ./test/functional/feature_backwards_compatibility.py
real    1m18.605s
user    0m3.054s
sys     0m1.593s

PR branch:

$ time ./test/functional/feature_backwards_compatibility.py
real    0m5.541s
user    0m1.875s
sys     0m1.220s

@DrahtBot
Copy link
Contributor

🐙 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".

@maflcko
Copy link
Member Author

maflcko commented Feb 24, 2022

24cec4b

@maflcko maflcko closed this Feb 24, 2022
@maflcko maflcko deleted the 2006-testIntBack branch February 24, 2022 17:07
@bitcoin bitcoin locked and limited conversation to collaborators Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent error in feature_backwards_compatibility: "Mempool sync timed out after 60s"
4 participants