From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 19 Jan 2026 02:28:48 -0800 Received: from mail-oa1-f56.google.com ([209.85.160.56]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1vhmV5-0006KY-Hc for bitcoindev@gnusha.org; Mon, 19 Jan 2026 02:28:48 -0800 Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-4044d3ff45esf3277431fac.2 for ; Mon, 19 Jan 2026 02:28:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1768818521; cv=pass; d=google.com; s=arc-20240605; b=lodH6eBMR3wt4NcysVie/kW3cjMoXPSjH8oHrkgBU5XNNxag6bOK7GXgjMgO8EMoN9 J1zSFcSyCIeO195u1NOZvJtJljkwnPW/C2oFeISuh9X6IUi8G+NGLlhotynZXrmhSWGz HJOKOHzTbAhFXyeIuTIOkX2SuzcjMqxLZ6mkscVGT9lYK865StEfttmcrIFx4tBUZzjJ 8H6z3xG4yT1/iryIZgwpK/pOPiJrCfVRrGoIC/g6VpLaQ7WTnbkrpo2tuEeOTWBnuLDp 7h+aHA+ipsOIZzsM0Z2cHRN4FfrjKkVH5XmY2G9cwQYWrb7881Bzzkrw+DNfJgc1piM1 PFMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=1ufBnXmpVqHQPBwFEpfDBkyu9zEJ5yBDvahG0Ia+1iw=; fh=0RUDEGtz7jb0msLiLHYXIzRnw8t6uO9ta/bW3J3DXV8=; b=gNhWm842Vf5LIK/MGKpTRGFf3dDxNGg7rxnJdIjJer6cg7mItJs1Z67x+Sjcaa8zqc x90zE47NfwmdBPCfMPGu0qztZ6Px8GElzWEeyXpLx5f5L+qYhoxqoQTeeFCEkZVD5cMt ofYiaG7I/pcoPyjNqIvPyJfpo6fQTN+vlju8BljwNJO91j6NxWmyGeEraomYl5T88o+2 TY1IbGVCINc7hHMTKFBrKJh4oXGD5ssSKc1ZYJbfLWxL0y0ViMAXYuUQzZS5ByDNZPur YtcGvotm/XgLjWMiid4zGjSh3XqJyVLLvx6JZvfvV/r5R+m3VMv9UYJ3XQAM7eQn1/Wj n65g==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pnb9bv65; spf=pass (google.com: domain of saintwenhao@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=saintwenhao@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1768818521; x=1769423321; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=1ufBnXmpVqHQPBwFEpfDBkyu9zEJ5yBDvahG0Ia+1iw=; b=RqXS3xWvl22Ha2FJGWElT/sB7KRBv1a7d+IslByKDKIE8xzeNlW1UUrggTWdn9OMyx 1o6515b+/kZZGTUkUpwDQDMadN30HIMqghi40FZK0C5lWZzPvY6c3A/GHIpK9NyBbReJ z0drMOtJRibT15s0iErBfQKXbxZykAy+CjOAxIygMGxicm5LggEXNWyYPSSDVmOqeQ90 RjHnpbe3V5/GpBNihIP9FsVwSqNOKjhlGIUzRsw2bgKhQtmUWjkhjJpxXsLWnBolRI0D rTbaVukSxtVbBJuVndYvKPIMrZl+AUH85NOmSbTTnB2TR3HWiK14TQJqnRyGdMuLTJvc CAbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768818521; x=1769423321; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1ufBnXmpVqHQPBwFEpfDBkyu9zEJ5yBDvahG0Ia+1iw=; b=DjSEThSfQVvCc5C/WowNB2WjUpSqlX7zSrhTCMwMibF9LmXfkQj6igjp0all5T0Bq1 9BEvoyF0y087Kqwk8CFPpudqP2eTA7h7hO0pgwSGHzqgjABc3BT/zCk+QwA+60GI+kN0 BYjiIn+ioonjXg/tYlV4UBIPIei5myofSw47X6nlIWnYNmcoJeDTSDeYuR9OOPbY8qnP 7WPjVpXIE2iLCsbwKQPu+4/1Qug+yLqtKiFXHP0rQG9cHasYE7wp4KBQpe+Od/LLWSbB nOf73QWiwitTnGLvz1fnNaOuMNZaOEaTU/aAR/bFgJTygrL4TpeDuR9kZtkXGilOOinZ nx+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768818521; x=1769423321; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-gm-gg:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=1ufBnXmpVqHQPBwFEpfDBkyu9zEJ5yBDvahG0Ia+1iw=; b=XD+I9JQ1ipxwzZambxSPX7HOY04uB4IPLO0zrCFZNg0Yfx5wz/JLn4LntoFpmq9SKB bpTbmqcKI5Sxnl27ZopYBku3BgMt0dWnvMMOkhKPwaBrUBrhtZitSxshXGM9qI2P2DlC 6l2EwGJmp4qhCnywcxb5GnUvnLW2WRWEBDv3K+jtAAPGZIgQP9jjnpMbuPRH3XT5tC/0 46Ku9+7BAFwh8gUlEsQcsKfpYZR+EdnWjOJvn+KD1z7NU1rq9hypi9/i+LdTSev3rCOX Jt8XkbpdpS7N4IMoCcBvzPZs93+CRCySyA7Mmr+elbkOo9cqgOyBUqdLyL1fLQRkj/lm /yhQ== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUBNxR0jt6TskgdXpOpR5cu1hIdx8ti2yn4BGE0Y2s5LzTckYlhGfI6Vc8nsYSQqZXioObBlqTQNXI+@gnusha.org X-Gm-Message-State: AOJu0YzAFUNeEgPwRwDXygGAx5/1hevMDiTWShzlWVogJWGef6I2raGC UsbsCCtwC8WKBuo1ZOsRPe61mSSlM5q+l8AWFV/I0//r+OGKrKklk2hV X-Received: by 2002:a05:6870:41d0:b0:3f5:4172:15 with SMTP id 586e51a60fabf-4044d0d30efmr5091849fac.58.1768818520434; Mon, 19 Jan 2026 02:28:40 -0800 (PST) X-BeenThere: bitcoindev@googlegroups.com; h="AV1CL+HhfkFchlUn0vXlom92KFkE4FUj2Km2RxCrwAgdfNql7A==" Received: by 2002:a05:6870:a106:b0:3ec:5074:681b with SMTP id 586e51a60fabf-40428a913ffls2176192fac.2.-pod-prod-06-us; Mon, 19 Jan 2026 02:28:35 -0800 (PST) X-Received: by 2002:a05:6808:221d:b0:45c:8045:89b2 with SMTP id 5614622812f47-45c9d859191mr4498826b6e.35.1768818515833; Mon, 19 Jan 2026 02:28:35 -0800 (PST) Received: by 2002:a05:600c:6c50:b0:477:b663:eee5 with SMTP id 5b1f17b1804b1-4801fd9b8f3ms5e9; Mon, 19 Jan 2026 00:40:42 -0800 (PST) X-Received: by 2002:a05:600c:8a0c:20b0:477:a54a:acba with SMTP id 5b1f17b1804b1-4801e35ce52mr113463555e9.17.1768812040679; Mon, 19 Jan 2026 00:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1768812040; cv=none; d=google.com; s=arc-20240605; b=RJYflTr7C5Nq/apWZy7zh5nafR2SRhcDqogyana8Bmq9iPsCyVB1GSJXMhkRzIRoOe xqsoUMR9mgknPRyMf/cEA22l+9lTHnUdo0rU/K7ov/ZU1kwHEXE97Xrmq+nIEjqcfJLC L4XJMHdaDMVDZEfu2hpbVPuDo2ADjRaM60cRYSAw1540nySV6ssgOLkO7QUbXdYmmkYm 9tDvkol38Id758BkA9LMB4D9oTUj0KvqK/FIBhLRekCaxYPchogqg6L099TOFg7rT80V hTL+bYWfJNZOmwGy9q/issITDhCjnMKdhrtD3vYbLzeT/ayAKnGVa0izDAHXDove2ynF Valw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=jAL1LBmuaL2UmT/d/ke04Mnjyem/iU2XDb331h7o11Y=; fh=BzZ26+G+TlwAl4JONzjtcpoDXrK/sAH0vWaDdGLyl/s=; b=IWqPhdcbEtEUxRhFHXZe/IStENK8P/f52bj/T3Ml/WZ+GRKXM8vQPs2f8T49VIVUbn 6V2Ncy/GiBXvOJw71N2AcOSwtbPniE+GKju/diTk2DUYmlpaJ4rKrmZw+BSJrrn/n5Bd H3JQvn4nHicmFwarxGb/TWRyWxiH8bDsXblpdIcLr1ZCsOMQckj5+ADvnSmseN9uheiD qjbQr1x0hwOFDrAkBzg+/RfZeIsZNMKv2mK11r308QnpzjxwaZ/EAwJ2egfw+A0Csq2a xtubDqExmYOvnsslDEg3AsZazvnEM6NzFWTAK8TCfjuJMzsMOkS1h+DL0d4vfHYyVoJ2 2HHA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pnb9bv65; spf=pass (google.com: domain of saintwenhao@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=saintwenhao@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com. [2a00:1450:4864:20::12f]) by gmr-mx.google.com with ESMTPS id ffacd0b85a97d-4356997fb4dsi177549f8f.9.2026.01.19.00.40.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Jan 2026 00:40:40 -0800 (PST) Received-SPF: pass (google.com: domain of saintwenhao@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) client-ip=2a00:1450:4864:20::12f; Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-59b76c092acso3856003e87.2 for ; Mon, 19 Jan 2026 00:40:40 -0800 (PST) X-Gm-Gg: AY/fxX6h9pmpBeQBsEomcvRbV3Dh2t70yoIJA5zvaF4g+ts8s3CpIMe0ioWa1B7gBoy 4dZbgK8e7M0NufuK+Uo2uJF44UWxxEfQ3Ol5RkAf3QXEf39MNBG5rVIdt6PPcXfzlFRxQ4sRTGY rgKG+QdJbti8RL9Q65xx4TZIdhR4eYQ5dK8EVfU1kHsOMdk3iJsmiGM5kQkNfKKo/yRct1kslM8 Kf8/Cc3+qsu3/y5WBsbaGG+n+bHTtyFxQ3kOj4YyyGnxa4d4oF1Usbm989bIAQqjDIuow== X-Received: by 2002:a05:6512:3f06:b0:59c:c01b:1818 with SMTP id 2adb3069b0e04-59cc01b18bcmr801611e87.2.1768812039428; Mon, 19 Jan 2026 00:40:39 -0800 (PST) MIME-Version: 1.0 References: <85djL2Ah0Mh9Appt934138jLRE23gGmaIr96y8q-clEmMa_APPZLerKrrUZN524_Diq4pOydQLaEOZ3XBy4-sQIPxYODOHreM5RWuNHILto=@protonmail.com> In-Reply-To: <85djL2Ah0Mh9Appt934138jLRE23gGmaIr96y8q-clEmMa_APPZLerKrrUZN524_Diq4pOydQLaEOZ3XBy4-sQIPxYODOHreM5RWuNHILto=@protonmail.com> From: Saint Wenhao Date: Mon, 19 Jan 2026 09:40:28 +0100 X-Gm-Features: AZwV_Qhkk8P6y2dgB57MyNSTEmf1CIqDo9RXCKXWN1lZ5_TM0cZG85hgoXz4FCQ Message-ID: Subject: Re: [bitcoindev] Re: [bitcoin-dev] Unbreaking testnet4 To: Angelo Cc: "bitcoindev@googlegroups.com" Content-Type: multipart/alternative; boundary="00000000000048de230648b9a5c2" X-Original-Sender: saintwenhao@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pnb9bv65; spf=pass (google.com: domain of saintwenhao@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=saintwenhao@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com 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: -0.5 (/) --00000000000048de230648b9a5c2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > The changes in the code are minimal. Yes, but you need some test cases as well. > We could modify the code to not suffer from the temporary 1-hour block interval if needed. It is not needed. Testnet4 overproduced around 30k blocks, if we count the time between today, and the Genesis Block. If it will take three months, instead of two weeks, to re-adjust the difficulty, then it wouldn't matter that much, because we already have around 1.5 million more coins, than we should have today. Also, rejecting all blocks with CPU difficulty would mean, that the updated network will be stuck from time to time, when ASIC miners will come in, raise the difficulty, and then go away, leaving the rest of the users with halted chain. pon., 19 sty 2026 o 00:35 'Angelo' via Bitcoin Development Mailing List < bitcoindev@googlegroups.com> napisa=C5=82(a): > Hello mailing list. > > I have forked Bitcoin Core and modified the code to fix testnet4 by > disabling the min difficulty rule after block 150,000: > https://github.com/bitcoin/bitcoin/compare/master...batmanbytes:bitcoin:t= estnet4-fix > > The changes in the code are minimal. As I've written in Bitcointalk > : > > I have introduced int nMinDifficultyBlocksForkHeight which is 0 by defaul= t > in consensus/params.h, only ever used by the CTestNet4Params class. > GetNextWorkRequired and PermittedDifficultyTransition are also modified t= o > check whether min difficulty blocks are enabled, and if yes, whether > nMinDifficultyBlocksForkHeight is 0 (which would indicate it is not > testnet4). > > > With no other changes to the code, during the epoch that includes block > 150,000 (which already began at block 149,184), we should expect the bloc= k > interval to increase by roughly sixfold (to about one hour per block). Th= is > is because the effective hashrate would correspond to approximately > one-sixth of the difficulty. The difficulty increases by about 6x since > there are roughly six times more difficulty-1 blocks than blocks at the > normal difficulty. > > We could modify the code to not suffer from the temporary 1-hour block > interval if needed. I'm just interested to see what you think of those > changes, so that we can move forward. > > -- > 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 > email to bitcoindev+unsubscribe@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/bitcoindev/85djL2Ah0Mh9Appt934138jLRE23= gGmaIr96y8q-clEmMa_APPZLerKrrUZN524_Diq4pOydQLaEOZ3XBy4-sQIPxYODOHreM5RWuNH= ILto%3D%40protonmail.com > > . > --=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 visit https://groups.google.com/d/msgid/bitcoindev/= CACgYNOLCvOiHSSpU0m9mGZmjH1JYb1S%2B_XfGpOFUV%2BgyJsGNKQ%40mail.gmail.com. --00000000000048de230648b9a5c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> The changes in the code are minimal.

Yes, but = you need some test cases as well.

> We could modify the code to n= ot suffer from the temporary 1-hour block interval if needed.

It is = not needed. Testnet4 overproduced around 30k blocks, if we count the time b= etween today, and the Genesis Block. If it will take three months, instead = of two weeks, to re-adjust the difficulty, then it wouldn't matter that= much, because we already have around 1.5 million more coins, than we shoul= d have today.

Also, rejecting all blocks with CPU difficulty would m= ean, that the updated network will be stuck from time to time, when ASIC mi= ners will come in, raise the difficulty, and then go away, leaving the rest= of the users with halted chain.

pon., 19 sty 2026 o 0= 0:35=C2=A0'Angelo' via Bitcoin Development Mailing List <bitcoindev@googlegroups.com>= napisa=C5=82(a):
Hello mailing list.

I have f= orked Bitcoin Core and modified the code to fix testnet4 by disabling the m= in difficulty rule after block 150,000:=C2=A0https://github.com/bit= coin/bitcoin/compare/master...batmanbytes:bitcoin:testnet4-fix

The changes in the code are minimal. As I've written in Bitcointalk:
I have introduced int nMinDifficultyBlocksForkHeight wh= ich is 0 by=20 default in consensus/params.h, only ever used by the CTestNet4Params=20 class. GetNextWorkRequired and PermittedDifficultyTransition are also=20 modified to check whether min difficulty blocks are enabled, and if yes, whether nMinDifficultyBlocksForkHeight is 0 (which would indicate it is not testnet4).=C2=A0

With no = other changes to the code, during the epoch that includes block 150,000 (wh= ich already began at block 149,184), we should expect the block interval to= increase by roughly sixfold (to about one hour per block). This is because= the effective hashrate would correspond to approximately one-sixth of the = difficulty. The difficulty increases by about 6x since there are roughly si= x times more difficulty-1 blocks than blocks at the normal difficulty.

We could modify the code to not suffer from the tempor= ary 1-hour block interval if needed. I'm just interested to see what yo= u think of those changes, so that we can move forward.=C2=A0=C2=A0

--
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 bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.c= om/d/msgid/bitcoindev/85djL2Ah0Mh9Appt934138jLRE23gGmaIr96y8q-clEmMa_APPZLe= rKrrUZN524_Diq4pOydQLaEOZ3XBy4-sQIPxYODOHreM5RWuNHILto%3D%40protonmail.com<= /a>.

--
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 visit https://groups.google.com/= d/msgid/bitcoindev/CACgYNOLCvOiHSSpU0m9mGZmjH1JYb1S%2B_XfGpOFUV%2BgyJsGNKQ%= 40mail.gmail.com.
--00000000000048de230648b9a5c2--