public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Sjors Provoost <sjors@sprovoost•nl>
To: Saint Wenhao <saintwenhao@gmail•com>
Cc: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>,
	Jameson Lopp <jameson.lopp@gmail•com>
Subject: Re: [bitcoindev] Unbreaking testnet4
Date: Mon, 28 Apr 2025 20:50:35 +0200	[thread overview]
Message-ID: <80B4FDA8-900E-479F-97B7-EE2AB37D0231@sprovoost.nl> (raw)
In-Reply-To: <CACgYNOL3gH6zhmNyiKLenqoiM9mydsxs3XExxJX1ZSVvOmX2bA@mail.gmail.com>


> Op 28 apr 2025, om 20:15 heeft Saint Wenhao <saintwenhao@gmail•com> het volgende geschreven:
> 
> > Which means that in practice, instead of seeing huge or overflowed amounts in UTXOs, we will probably see a lot of repeated entries in the UTXO set, holding MAX_MONEY each.
> 
> Now I applied "doubling" patch in my local regtest, and I can confirm it. After 2849 blocks, when trying to mine block number 2850, the UTXO amount exceeded 21 million coins, and then it failed.

Thanks, that's useful feedback.

Note that in regtest the nSubsidyHalvingInterval is 150 blocks instead of 210,000 for mainnet and the current testnets, so the problem happens 1,400 times faster. On an actual testnet5 this would happen at block 3,999,000 instead, which is 75 years from now.

[...]

> However, after manually crafting a block with 21 million coins, it succeeded:

In the unlikely event this hypothetical testnet would still be around, we could modify the miner code to not go over this limit.

- Sjors 

-- 
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/80B4FDA8-900E-479F-97B7-EE2AB37D0231%40sprovoost.nl.


  reply	other threads:[~2025-04-29 14:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-18 14:29 'Antoine Poinsot' via Bitcoin Development Mailing List
2025-03-18 21:34 ` Melvin Carvalho
2025-03-19  7:01 ` [bitcoindev] " Garlo Nicon
2025-03-19  7:56   ` [bitcoindev] " Sjors Provoost
2025-03-19  8:43     ` Garlo Nicon
2025-03-19  8:32 ` Sjors Provoost
2025-03-19  9:11   ` Melvin Carvalho
2025-03-19 17:03 ` bitcoin-dev-ml.void867 via Bitcoin Development Mailing List
2025-03-20 18:58 ` Melvin Carvalho
2025-03-21 21:20 ` Murch
2025-03-24  7:00   ` Garlo Nicon
2025-03-31  7:32     ` Saint Wenhao
2025-03-24 12:25   ` Murch
2025-03-24 13:57     ` 'Antoine Poinsot' via Bitcoin Development Mailing List
2025-04-27 11:44       ` Saint Wenhao
2025-04-27 22:49         ` Jameson Lopp
2025-04-28  6:11           ` Saint Wenhao
2025-04-28 10:45             ` Jameson Lopp
2025-04-28 11:59               ` 'emsit' via Bitcoin Development Mailing List
2025-04-28 12:47               ` Sjors Provoost
2025-04-28 13:33                 ` Saint Wenhao
2025-04-28 18:15                 ` Saint Wenhao
2025-04-28 18:50                   ` Sjors Provoost [this message]
     [not found]             ` <20250428110655.D4A1C7C0AE9@smtp.postman.i2p>
2025-04-28 11:48               ` pithosian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80B4FDA8-900E-479F-97B7-EE2AB37D0231@sprovoost.nl \
    --to=sjors@sprovoost$(echo .)nl \
    --cc=bitcoindev@googlegroups.com \
    --cc=jameson.lopp@gmail$(echo .)com \
    --cc=saintwenhao@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox