Subject: Re: [bitcoindev] Unbreaking testnet4

From: Sjors Provoost <[email-masked]>
Date: Mon, 28 Apr 2025 20:50:35 +0200

> Op 28 apr 2025, om 20:15 heeft Saint Wenhao <[email-masked]> 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 [email-masked].
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/80B4FDA8-900E-479F-97B7-EE2AB37D0231%40sprovoost.nl.