New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: enable v2transport by default #29347
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
ACK 292e716 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cr utACK 292e716
ACK 292e716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 292e716
Concept ACK Not sure if it should be enabled for onion/i2p connections by default. |
Hmm, no. The issue is that previous releases may not even support the |
Sorry I deleted my comment cos I realised it was wrong as other tests would have failed... originally was:
|
292e716
to
b7b25ce
Compare
b7b25ce
to
0bef104
Compare
ACK 0bef104. |
reACK 0bef104 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 0bef104
@@ -130,8 +130,15 @@ def __init__(self, i, datadir_path, *, chain, rpchost, timewait, timeout_factor, | |||
# Default behavior from global -v2transport flag is added to args to persist it over restarts. | |||
# May be overwritten in individual tests, using extra_args. | |||
self.default_to_v2 = v2transport | |||
if self.default_to_v2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure we want to keep default_to_v2
. It's kinda unused now, and I'm not sure future tests would ever find it useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 0bef104
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK
@willcl-ark I believe @mzumsande is planning to open a PR to enable it everywhere in the tests.
Yes, I'll open a PR later this week (current branch https://github.com/mzumsande/bitcoin/tree/202401_bip324_alltests which still needs some cleanups)! [Edit: Now opened in #29358]
If we are now defaulting v2 to enabled, do we want to enable v2transport on a few more of the p2p functional tests
It's more than adding more tests to the list, the -v2transport
option currently doesn't make the python P2PConnection
use v2 (even after #24748 added support), so the status quo is that specific tests need to enable that explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re ACK 0bef104
utACK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 0bef104
ACK 0bef104 |
Needs |
0d3e18b doc: document that BIP324 on by default for v27.0 (fanquake) Pull request description: Addresses: #29347 (comment). ACKs for top commit: maflcko: lgtm ACK 0d3e18b sipa: ACK 0d3e18b theStack: ACK 0d3e18b Tree-SHA512: a2af6dbba2740e5cf9c51660059d39577f3744e2adf554222bbc2eac454a161c2e68111797a7cbe34943fe2a424f5fadbeeffcd6f7ae42e3333878875ac43424
Added rel-note todo to the draft wiki. |
Github-Pull: bitcoin#29347 Rebased-From: 0bef104
Will it still be neccesary to specify v2transport=1 parameter on |
No, that won't be necessary (thought it won't hurt to leave it in). |
This enables BIP324's v2 transport by default (see #27634):
NODE_P2P_V2
was set in addr gossip, but retry with v1 if met with immediate failure.It remains possible to run with
-v2transport=0
to disable all of these, and make all outbound and inbound connections v1. It also remains possible to specify thev2transport
argument to theaddnode
RPC asfalse
, to disable attempting a v2 connection for that particular added node.