8000 Drop testnet3 by Sjors · Pull Request #31974 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Drop testnet3 #31974

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

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Drop testnet3 #31974

wants to merge 10 commits into from

Conversation

Sjors
Copy link
Member
@Sjors Sjors commented Mar 3, 2025

Testnet3 was deprecated in v28 with the introduction of testnet4. It will be dropped in v30 or later, please discuss in #31975.

There is no more [test] network section. The user is expected to set testnet4 explicitly, which should make future rotation of testnets easier.

If a [test] or [testnet3] section is present in bitcoin.conf a warning is issued:

Warning: .../bitcoin.conf:18 Section [test] is not recognized.

Starting with -testnet3 will be greeted with an error message:

Error: Testnet3 was dropped in version 30.0. Consider using '-testnet4' instead.

This also prevents a fallback to mainnet.

Starting with -test was already not possible with testnet3.

Review hints:

  • make a (Windows) Guix build and test the (un)installer

Guix hashes:

(todo)

@DrahtBot
Copy link
Contributor
DrahtBot commented Mar 3, 2025

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

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31974.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK fjahr

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #32699 (docs: adds correct updated documentation links by Zeegaths)
  • #32579 (headerssync: Preempt unrealistic unit test behavior by hodlinator)
  • #32427 ((RFC) kernel: Replace leveldb-based BlockTreeDB with flat-file based store by TheCharlatan)
  • #32425 (config: allow setting -proxy per network by vasild)
  • #32317 (kernel: Separate UTXO set access from validation functions by TheCharlatan)
  • #29678 (Bugfix: Correct first-run free space checks by luke-jr)
  • #28122 (Silent Payments: Implement BIP352 by josibake)
  • #27260 (Enhanced error messages for invalid network prefix during address parsing. by portlandhodl)
  • #26201 (Remove Taproot activation height 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.

@instagibbs
Copy link
Member

I've said it elsewhere, but I think it deserves a quite long deprecation cycle, along with some data gathering.

We don't want services not upgrading for fixes because their test environment would break.

e.g., what exchanges with testnet environments have adopted testnet4 (or signet), much less would be ok with removing testnet3?

Does btcd support it? LND? Eclaire? CLN? etc.

Lots of work to be done here imo.

@Sjors
Copy link
Member Author
Sjors commented Mar 3, 2025

I opened a separate RFC to discuss when to drop testnet3: #31975

I can rebase this for a while if we decide v30 is too early.

@fjahr
Copy link
Contributor
fjahr commented Mar 3, 2025

Concept ACK

@Sjors Sjors force-pushed the 2025/03/testnet3 branch from 5d6aa13 to b221f0c Compare March 3, 2025 21:30
@Sjors
Copy link
Member Author
Sjors commented Mar 3, 2025

I split 5d6aa13 into smaller commits. If we decide to punt this until after v30 then I'll PR some of these separately. E.g. there's some tests that can use testnet4 instead of testnet3 and perhaps we can drop GUI support earlier.

@Sjors
Copy link
Member Author
Sjors commented Mar 4, 2025

Will rebase after #31649 is rebased.

@Sjors
Copy link
Member Author
Sjors commented Apr 2, 2025

Rebased after #32096.

@Sjors
Copy link
Member Author
Sjors commented Apr 30, 2025

Rebased after #29039.

(moved conceptual question to #31975)

Sjors added 10 commits June 11, 2025 10:09
Except for the deprecation warning in feature_config_args.py.
This test now writes its own config file, which was previously done by
test_acceptstalefeeestimates_arg_support.

The deprecation warning test will be removed in a later commit.
Abort node startup and inform user they should use -testnet4.
Modify the deprecation message test to cover this.

Remove testnet3 references from bitcoin-cli documentation
and bash helper.
Also use "test network" instead of "testnet" where appropriate (e.g.
because it also applies to signet).
This drops the chain parameters and ChainType::TESTNET.
@Sjors Sjors force-pushed the 2025/03/testnet3 branch from d935aac to 493eaab Compare June 11, 2025 08:13
@Sjors
Copy link
Member Author
Sjors commented Jun 11, 2025

Trivial rebase after #24450.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0