Delivery-date: Tue, 28 May 2024 15:29:26 -0700 Received: from mail-ot1-f55.google.com ([209.85.210.55]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sC5Jt-0007py-Ih for bitcoindev@gnusha.org; Tue, 28 May 2024 15:29:26 -0700 Received: by mail-ot1-f55.google.com with SMTP id 46e09a7af769-6f8e2181c5dsf1485017a34.1 for ; Tue, 28 May 2024 15:29:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716935359; cv=pass; d=google.com; s=arc-20160816; b=QddbLZ04XrQ+KSbYqNcdWHsCB1b/1bScSETQqaKIRmrgou7KUedy2YDQ/4ZlQoui/8 oxYiRs7t3Z21p3k+zwxpsvzjmBFJU7zE+wf/AQpdDcV7LRyMkTjXzI97QJrGaO4sDlTK JxOeAt1jVjSijHmxCazMSBsRZgLbATGpi+Af4STeD70DvWRPpycPkQ2dwWmoS1ZH5GSV mzK7Wtlp4IczbW072wBGNYZc/itmbnxogdr+3RniSIKxFao6YLc8x5wOK86ikSsyNii/ ErHaVcOMPU+qFZe7XVjelwcrxe30nACXejNzPeEFVzPWTF2k4zHk3ZTB6EP0fAQGVChW HZKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:feedback-id :message-id:subject:from:to:date:dkim-signature; bh=OYNhzfZB/6lfclfxTFZSuWklFsog/VZon7HOIDOZCyU=; fh=2svBwGH2/Y4+A8e3Ioxq1dtRwek9vki/DfZ2FzgPN6M=; b=hgL5TDsJo/s3wnwnjt+gnPrRKNST4CTVSurf/0Px4QWn9/7ynULT3qlLF1PUiNKtz1 eV46odgeZAVPvG/A/XzYbtx/XCdE4vaBQ2LaJrKuk0fg9a6pxzdQLR+IiU81Efi+Akgh j8U0xwCF/aEBDVduMQKX5KFs+ZRKTX6MQi5+pV4tMJtYhWuCRGDmSgS0DZ19/fHAoYvK as60fk+7E1/4WTIxNjzBwUNSilIuA6/0621fDu6pKA1q4/jqmuS6FCtKYbIILW1dmezo SbLMFuUF8trNwGQ8cr8c1h8ImfGFWGthSQx3pBBe14VH4e7PzBlcVHR5Yy/zVdJ2M9uI M6Tg==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=uIOio3j2; spf=pass (google.com: domain of fjahr@protonmail.com designates 185.70.43.16 as permitted sender) smtp.mailfrom=fjahr@protonmail.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1716935359; x=1717540159; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :feedback-id:message-id:subject:from:to:date:from:to:cc:subject:date :message-id:reply-to; bh=OYNhzfZB/6lfclfxTFZSuWklFsog/VZon7HOIDOZCyU=; b=I3bdL2xHEF7uY0BELxs5a6aNlsxfor87ceibuWW6frLiW2iKb75mfVq2AJ37tsDv88 v2HeHHw1ZfIZYP8H3S49ZG3wmRQG0qFNaF9yfsSgSawdTt6WEwsYhHczHK16ot3GoQW9 A3BtsJPA2o6bhBnxyJmCgML+nGaSKkZOrhq5RKrH8QFjBtBdYRknTeqNrjQs98fgh7AQ Kgf8N7qwPLVImNRYSmphz44AGywKTvNsd7/SXTpyZt8RoSTs0Nmtss10kutig+OQ1U1b 8zh0kU2bWUrxps3RdnYEQV38OxOXAsR3jY0TQxGY1yx+P2kDrxfzJKyiOSjeEP5uuM9t H8FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716935359; x=1717540159; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :feedback-id:message-id:subject:from:to:date:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OYNhzfZB/6lfclfxTFZSuWklFsog/VZon7HOIDOZCyU=; b=sdsJf9gP6dNDih5by2xj/Q2c3pEymYGu49aZjBT/A20AyhC3Ada6yfQS00dMiVVHdS gLgiesDTRs8EH7cOpNFMTwcpylzCkxJBwIcgnuzgQBZbi5v74aOzk1SAKQbSpnUvuYwu m5njvelnpiXe2Lw+RXjj6DQDozyaaRuD33MGn4Ef9AuicfM0HC1qLP4DwTzCQPMzfoif wNxrJE2NQ4oiPI6iR+/AkRV3/YkaxczeM+B55K/PUdwlRn3Kwo+i8tLiW1YEXOY2nXtv OCYq5aZmAGxZrqtQOP7ZCXcknG6pREsHf/FRVdvLJN3uGI/spdQXDBOtAkHACO91qYKm PgoA== X-Forwarded-Encrypted: i=2; AJvYcCXgxD79GgXoemB6Yo8n1bSdTnuSVXDyKbxW1CfJxVXw8KZziWJT+k27Ig46NqLrFnfDwDvGQqeBtaX0olKvlHkVKBoT6sQ= X-Gm-Message-State: AOJu0Yyo6P+4AAwm8OkHz2iyf7vwlwCuP0cBGf2lKgybvLMsD7xqtufH fSAQEcymJRjyvZkkXFL9IKwmqUj90vsRWoeBjISVxbEMrdAs/t3T X-Google-Smtp-Source: AGHT+IHw4J1lZL/p/mc+VGAHncxb5qrDWRV1CzDMuYEj30tCh6vR3WpNGsi53mn5OnD0uZXOgwWEgA== X-Received: by 2002:a05:6808:2a81:b0:3c9:cab7:dfa4 with SMTP id 5614622812f47-3d1a7d2870dmr12299612b6e.57.1716935357778; Tue, 28 May 2024 15:29:17 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com Received: by 2002:a05:6214:21e3:b0:6a9:2a:cacd with SMTP id 6a1803df08f44-6ad9f8c3579ls1764486d6.0.-pod-prod-08-us; Tue, 28 May 2024 15:29:16 -0700 (PDT) X-Received: by 2002:ad4:4ee5:0:b0:6ad:7849:c438 with SMTP id 6a1803df08f44-6ad7849c787mr3132346d6.7.1716935356361; Tue, 28 May 2024 15:29:16 -0700 (PDT) Received: by 2002:a05:620a:8c0f:b0:794:8944:fbb1 with SMTP id af79cd13be357-794e0f4e7d9ms85a; Tue, 28 May 2024 15:01:14 -0700 (PDT) X-Received: by 2002:a05:651c:1022:b0:2e9:8324:d965 with SMTP id 38308e7fff4ca-2e98324dc31mr27467561fa.9.1716933672203; Tue, 28 May 2024 15:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716933672; cv=none; d=google.com; s=arc-20160816; b=RjphmIrIz8hMyONFeFOdGjeHec4C/W4iQUgtlqndaDupZbkPb6FvqrUOEVnlYccLTo yfBMhg1ys9/GSIaBn6aOuyFsgFHUvOD4/+n6pyyQCFCdJ8KaTyot66UJg6dg3jj6xyAB KZJ6kBVrk9KZkKDxJ1vLjBX4WK2rPNK0J492PqnB9f8SvTIigwv1KTkyz5XyKOJBP4xD 1nFGHi+r0K4oXXHs6f0AxoreQBAwcFUHmZo3+buLZI7Mmc4/qHtjAPCdNTwI5uimd4Bg jPizNRohNPPVLI6N4O8HAJQ1E29Cuvz/zoYF8ZRYOOtB0KPFBx6JeGZbl2oZjZMhxr4L djNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:feedback-id:message-id:subject:from:to:date :dkim-signature; bh=4scWi/6VwU+T7XLo0aMrNm8aqZ576JYHRuf+3b4lubY=; fh=DMP0F9ULS1guKiqimntQRCN8ZraraesEgQuVcn7F0Z0=; b=gfSw4T2YHimSbpEnSZaYUBtLmfTGLE20kcdJa6/v8rTyPyJ9/hSHDQQt6dEROnDOXU UMBoHPS8JPofZnWlYjpikttC+AgCqOBYvy2cdivS015vvWAjyAV80FvCUuc7pBmnYHyW w1KWJ0VYI22OrvP0017bKjoL8AeWP+IouPS66tEafON2tVeyv07F0EmRUaNVkWyVODys ACOumACGDtuiks/cIgL6riBj1nxHnMb4zFyYPZBholT80rlhYHULsVnL0PhMm2HF5tOQ Ov18e6ys4idwWBxJN4++2wDehujnI49qwv79dLcpjvOtts4glTyyfUMARtZ5xqg5e9lx Cssg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=uIOio3j2; spf=pass (google.com: domain of fjahr@protonmail.com designates 185.70.43.16 as permitted sender) smtp.mailfrom=fjahr@protonmail.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch. [185.70.43.16]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-2e95be1afe4si3308991fa.6.2024.05.28.15.01.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 15:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of fjahr@protonmail.com designates 185.70.43.16 as permitted sender) client-ip=185.70.43.16; Date: Tue, 28 May 2024 22:01:05 +0000 To: Bitcoin Development Mailing List From: "'Fabian' via Bitcoin Development Mailing List" Subject: [bitcoindev] BIP for Testnet 4 Message-ID: Feedback-ID: 5067558:user:proton X-Pm-Message-ID: 431d592eb33ece8e7136c75c2e7bd8badf33afb7 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_tHLKC78ARIKRUpKZKO4WjS96BkIj4vUl0CGgsNY4" X-Original-Sender: fjahr@protonmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=uIOio3j2; spf=pass (google.com: domain of fjahr@protonmail.com designates 185.70.43.16 as permitted sender) smtp.mailfrom=fjahr@protonmail.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com X-Original-From: Fabian Reply-To: Fabian Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --b1_tHLKC78ARIKRUpKZKO4WjS96BkIj4vUl0CGgsNY4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello list, a potential reset or replacement of Testnet 3 has been discussed on this li= st previously here: https://groups.google.com/g/bitcoindev/c/9bL00vRj7OU/m/= 9yCPo3uUBwAJ The discussion continued in the accompanying bitcoin core pull request (htt= ps://github.com/bitcoin/bitcoin/pull/29775) which has been tested in the pa= st couple of weeks and adopted by several projects on an experimental basis= , such as https://mempool.space/testnet4 for example. I have now formalized the current rules and genesis block implemented in th= e PR as BIP draft: https://github.com/bitcoin/bips/pull/1601 ----------- =3D=3D Abstract =3D=3D A new test network with the goal to replace Testnet 3. This network comes w= ith small but important improvements of the consensus rules, that should ma= ke it impractical to attack the network using only CPU mining. =3D=3D Motivation =3D=3D Quoting the original mailing list post from Jameson Lopp: "Testnet3 has been running for 13 years. It's on block 2.5 million somethin= g and the block reward is down to ~0.014 TBTC, so mining is not doing a gre= at job at distributing testnet coins anymore. The reason the block height is insanely high is due to a rather amusing edg= e case bug that causes the difficulty to regularly get reset to 1, which ca= uses a bit of havoc. If you want a deep dive into the quirk: https://blog.l= opp.net/the-block-storms-of-bitcoins-testnet/ Testnet3 is being actively used for scammy airdrops; those of us who tend t= o be generous with our testnet coins are getting hounded by non-developers = chasing cheap gains. As a result, TBTC is being actively bought and sold; one could argue that t= he fundamental principle of testnet coins having no value has been broken." Since then the issue with block storms has been further demonstrated on Tes= tnet 3 when three years' worth of blocks were mined in a few weeks while re= ndering the network practically unusable at the same time. =3D=3D Specification =3D=3D Consensus of Testnet 4 follows the same rules as Testnet 3 with the excepti= on of the two new rules detailed below. This means that the existing 20 min difficulty exception in Testnet 3 is ex= plicitly kept in place, meaning that a block with a timestamp 20 minutes fu= rther into the future from the current time is allowed to have a minimum di= fficulty of 1 instead of whatever the actual level currently is. =3D=3D=3D Block Storm Fix =3D=3D=3D When the next work required is calculated for the first block in a new diff= iculty period, the difficulty of the last block of the previous difficulty = period is only used as the base for this calculation if its difficulty is n= ot 1. If its difficulty is 1, all blocks in the previous difficulty period = are checked in reverse order if any of them have a different difficulty tha= n 1. When a different difficulty is encountered, it is assumed to be the ac= tual difficulty of the network and used as the base for the calculation of = the new difficulty level. Only if all blocks from the previous difficulty p= eriod have had a difficulty of 1 (possibly by the use of the 20-min rule), = this is also used as the base for the calculation of the next difficulty pe= riod. For the avoidance of doubt, no matter which block in the previous difficult= y period provides the actual difficulty used as the basis for the calculati= on, the timestamp of the last block is always the one that is used as the e= nd time of the difficulty period. =3D=3D=3D Time Warp Fix =3D=3D=3D To protect against the time warp attack, the following rule proposed as par= t of The Great Consensus Cleanup is enforced: "The nTime field of each bloc= k whose height, mod 2016, is 0 must be greater than or equal to the nTime f= ield of the immediately prior block minus 600. For the avoidance of doubt, = such blocks must still comply with existing Median-Time-Past nTime restrict= ions." =3D=3D Rationale =3D=3D The applied changes were the result of discussions on the mailing list and = the PR. The selected changes try to strike a balance between minimal change= s to the network (keeping it as close to mainnet as possible) while making = it more robust against attackers that try to disrupt the network. Several a= lternative designs were considered: * For the block storm fix an alternative fix could have been to prevent the= last block in a difficulty period from applying the existing difficulty ex= ception. Both solutions were deemed acceptable and there was no clear prefe= rence among reviewers. * Removal of the 20-min difficulty exception was discussed but dismissed si= nce several reviewers insisted that it was a useful feature allowing non-st= andard transactions to be mined with just a CPU. * Increase of minimum difficulty was discussed but dismissed as it would ca= tegorically prevent participation in the network using a CPU miner. * Increase of the delay in the 20 min difficulty exception was suggested bu= t did not receive significant support. * Re-enabling acceptnonstdtxn in bitcoin core by default was d= ismissed as it had led to confusion among layer-2s that had used testnet fo= r transaction propagation tests and expected it to behave similar to mainne= t. * Motivating miners to re-org min difficulty blocks was suggested but this = may still be done after Testnet 4 is deployed, so it can be considered out = of scope for this BIP. * Persisting the real difficulty in the version field was suggested to prev= ent exploits of the 20-min rule in an even more robust way, but did not rec= eive a critical level of support since it would be a more invasive change. =3D=3D Network Parameters =3D=3D =3D=3D=3D Consensus Rules =3D=3D=3D All consensus rules active on mainnet at the time of this proposal are enfo= rced from block 1, the newest of these rules being the Taproot softfork. =3D=3D=3D Genesis Block =3D=3D=3D * Message: 03/May/2024 000000000000000000001ebd58c244970b3aa9d783bb00= 1011fbe8ea8e98e00e * Pubkey: 00000000000000000000000000000000000000000000000000000000000= 0000000 * Time stamp: 1714777860 * Nonce: 393743547 * Difficulty: 0x1d00ffff * Version: 1 The resulting genesis block hash is 00000000da84f2bafbbc53dee25a72ae5= 07ff4914b867c565be350b0da8bf043, and the block hex is 01000000= 010000000000000000000000000000000000000000000000000000000000000000ffffffff5= 504ffff001d01044c4c30332f4d61792f323032342030303030303030303030303030303030= 303030303165626435386332343439373062336161396437383362623030313031316662653= 865613865393865303065ffffffff0100f2052a010000002321000000000000000000000000= 000000000000000000000000000000000000000000ac00000000. =3D=3D=3D Message Start =3D=3D=3D The message start is defined as 0x1c163f28. These four bytes w= ere randomly generated and have no special meaning. =3D=3D Compatibility =3D=3D This specification is backward compatible in the sense that existing softwa= re can use Testnet 4 out of the box, assuming support for Testnet 3 already= exists. Simply by adding the network parameters for Testnet 4 (magic number, etc.),= a client can connect to and use Testnet 4 without further modifications. T= he block headers have valid proof of work, so clients can trivially check t= hat blocks are "probably" valid. However, without the implementation of the changes detailed in Specificatio= ns, a client could follow a chain that does not follow the rules. Any fully= validating node should check these rules and reject blocks that fail to fo= llow them. Clients should either validate these rules or connect to trusted= peers that do full validation. =3D=3D Reference implementation =3D=3D Pull request at https://github.com/bitcoin/bitcoin/pull/29775 =3D=3D References =3D=3D # Original mailing list thread: https://groups.google.com/g/bitcoindev/c/9b= L00vRj7OU/m/kFPaQCzmBwAJ # Blog post on block storm bug: https://blog.lopp.net/the-block-storms-of-b= itcoins-testnet/ # Consensus Cleanup BIP draft: https://github.com/TheBlueMatt/bips/blob/cle= anup-softfork/bip-XXXX.mediawiki # Consensus Cleanup PR draft: https://github.com/bitcoin/bitcoin/pull/15482 =3D=3D Copyright =3D=3D This document is licensed under the Creative Commons CC0 1.0 Universal lice= nse. --=20 You received this message because you are subscribed to the Google Groups "= Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoindev+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= bitcoindev/a6e3VPsXJf9p3gt_FmNF_Up-wrFuNMKTN30-xCSDHBKXzXnSpVflIZIj2NQ8Wos4= PhQCzI2mWEMvIms_FAEs7rQdL15MpC_Phmu_fnR9iTg%3D%40protonmail.com. --b1_tHLKC78ARIKRUpKZKO4WjS96BkIj4vUl0CGgsNY4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello list,=

<= /div>
a pote= ntial reset or replacement of Testnet 3 has been discussed on this list pre= viously here: https://groups.google.com/g/bitcoindev/c/9bL00vRj7OU/m/9yCPo3uUBw= AJ

The discussion continued in the accompan= ying bitcoin core pull request (https://github.com/bitcoi= n/bitcoin/pull/29775) which has been tested in the past couple o= f weeks and adopted by several projects on an experimental basis, such as&n= bsp;https://mempool.space/testnet4 fo= r example.

I have now formalized the = current rules and genesis block implemented in the PR as BIP draft:&= nbsp;https://github.com/bitcoin/b= ips/pull/1601

-----------
=3D=3D Abstract =3D=3D

A new test network with the goal to repla= ce Testnet 3. This network comes with small but important improvements of t= he consensus rules, that should make it impractical to attack the network u= sing only CPU mining.

=3D=3D Motivati= on =3D=3D

Quoting the original mailin= g list post from Jameson Lopp:

"Testn= et3 has been running for 13 years. It's on block 2.5 million something and = the block reward is down to ~0.014 TBTC, so mining is not doing a great job= at distributing testnet coins anymore.

The reason the block height is insanely high is due to a rather amusing = edge case bug that causes the difficulty to regularly get reset to 1, which= causes a bit of havoc. If you want a deep dive into the quirk: https://blog.lopp.net/the-block-= storms-of-bitcoins-testnet/

Testn= et3 is being actively used for scammy airdrops; those of us who tend to be = generous with our testnet coins are getting hounded by non-developers chasi= ng cheap gains.

As a result, TBTC is = being actively bought and sold; one could argue that the fundamental princi= ple of testnet coins having no value has been broken."
Since then the issue with block storms has been further d= emonstrated on Testnet 3 when three years' worth of blocks were mined in a = few weeks while rendering the network practically unusable at the same time= .

=3D=3D Specification =3D=3D<= /div>

Consensus of Testnet 4 follows the same rule= s as Testnet 3 with the exception of the two new rules detailed below.

This means that the existing 20 min diffi= culty exception in Testnet 3 is explicitly kept in place, meaning that a bl= ock with a timestamp 20 minutes further into the future from the current ti= me is allowed to have a minimum difficulty of 1 instead of whatever the act= ual level currently is.

=3D=3D=3D Blo= ck Storm Fix =3D=3D=3D

When the next = work required is calculated for the first block in a new difficulty period,= the difficulty of the last block of the previous difficulty period is only= used as the base for this calculation if its difficulty is not 1. If its d= ifficulty is 1, all blocks in the previous difficulty period are checked in= reverse order if any of them have a different difficulty than 1. When a di= fferent difficulty is encountered, it is assumed to be the actual difficult= y of the network and used as the base for the calculation of the new diffic= ulty level. Only if all blocks from the previous difficulty period have had= a difficulty of 1 (possibly by the use of the 20-min rule), this is also u= sed as the base for the calculation of the next difficulty period.

For the avoidance of doubt, no matter which b= lock in the previous difficulty period provides the actual difficulty used = as the basis for the calculation, the timestamp of the last block is always= the one that is used as the end time of the difficulty period.

=3D=3D=3D Time Warp Fix =3D=3D=3D

To protect against the time warp attack, the follow= ing rule proposed as part of The Great Consensus Cleanup is enforced: "The = nTime field of each block whose height, mod 2016, is 0 must be greater than= or equal to the nTime field of the immediately prior block minus 600. For = the avoidance of doubt, such blocks must still comply with existing Median-= Time-Past nTime restrictions."

=3D=3D= Rationale =3D=3D

The applied changes= were the result of discussions on the mailing list and the PR. The selecte= d changes try to strike a balance between minimal changes to the network (k= eeping it as close to mainnet as possible) while making it more robust agai= nst attackers that try to disrupt the network. Several alternative designs = were considered:

* For the block stor= m fix an alternative fix could have been to prevent the last block in a dif= ficulty period from applying the existing difficulty exception. Both soluti= ons were deemed acceptable and there was no clear preference among reviewer= s.
* Removal of the 20-min difficulty exception was = discussed but dismissed since several reviewers insisted that it was a usef= ul feature allowing non-standard transactions to be mined with just a CPU.<= /span>
* Increase of minimum difficulty was discussed but d= ismissed as it would categorically prevent participation in the network usi= ng a CPU miner.
* Increase of the delay in the 20 mi= n difficulty exception was suggested but did not receive significant suppor= t.
* Re-enabling <code>acceptnonstdtxn</cod= e> in bitcoin core by default was dismissed as it had led to confusion a= mong layer-2s that had used testnet for transaction propagation tests and e= xpected it to behave similar to mainnet.
* Motivatin= g miners to re-org min difficulty blocks was suggested but this may still b= e done after Testnet 4 is deployed, so it can be considered out of scope fo= r this BIP.
* Persisting the real difficulty in the = version field was suggested to prevent exploits of the 20-min rule in an ev= en more robust way, but did not receive a critical level of support since i= t would be a more invasive change.

= =3D=3D Network Parameters =3D=3D

=3D= =3D=3D Consensus Rules =3D=3D=3D

All = consensus rules active on mainnet at the time of this proposal are enforced= from block 1, the newest of these rules being the Taproot softfork.=

=3D=3D=3D Genesis Block =3D=3D=3D

* Message: <code>03/May/2024 00000000000= 0000000001ebd58c244970b3aa9d783bb001011fbe8ea8e98e00e</code>
* Pubkey: <code>00000000000000000000000000000000000000= 0000000000000000000000000000</code>
* Time sta= mp: 1714777860
* Nonce: 393743547
<= span>* Difficulty: <code>0x1d00ffff</code>
* Version: 1

The resulting genesis= block hash is <code>00000000da84f2bafbbc53dee25a72ae507ff4914b867c56= 5be350b0da8bf043</code>, and the block hex is <code>01000000010= 000000000000000000000000000000000000000000000000000000000000000ffffffff5504= ffff001d01044c4c30332f4d61792f323032342030303030303030303030303030303030303= 030303165626435386332343439373062336161396437383362623030313031316662653865= 613865393865303065ffffffff0100f2052a010000002321000000000000000000000000000= 000000000000000000000000000000000000000ac00000000</code>.

=3D=3D=3D Message Start =3D=3D=3D

The message start is defined as <code>0x1c163= f28</code>. These four bytes were randomly generated and have no spec= ial meaning.

=3D=3D Compatibility =3D= =3D

This specification is backward co= mpatible in the sense that existing software can use Testnet 4 out of the b= ox, assuming support for Testnet 3 already exists.

Simply by adding the network parameters for Testnet 4 (magic = number, etc.), a client can connect to and use Testnet 4 without further mo= difications. The block headers have valid proof of work, so clients can tri= vially check that blocks are "probably" valid.

<= div>However, without the implementation of the changes detailed in Sp= ecifications, a client could follow a chain that does not follow the rules.= Any fully validating node should check these rules and reject blocks that = fail to follow them. Clients should either validate these rules or connect = to trusted peers that do full validation.

<= span>=3D=3D Reference implementation =3D=3D

Pull request at https://github= .com/bitcoin/bitcoin/pull/29775

= =3D=3D References =3D=3D

# Consensus Cleanup PR draft: https://github.com/bitcoin/bitcoin/pull/15482<= /div>

=3D=3D Copyright =3D=3D
This document is licensed under the Creative Commons CC0 = 1.0 Universal license.

--
You received this message because you are subscribed to the Google Groups &= quot;Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoind= ev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/b= itcoindev/a6e3VPsXJf9p3gt_FmNF_Up-wrFuNMKTN30-xCSDHBKXzXnSpVflIZIj2NQ8Wos4P= hQCzI2mWEMvIms_FAEs7rQdL15MpC_Phmu_fnR9iTg%3D%40protonmail.com.
--b1_tHLKC78ARIKRUpKZKO4WjS96BkIj4vUl0CGgsNY4--