CHIP-2025-03 Faster Blocks for Bitcoin Cash

So let’s not actually fix the problem with nLockTime in time mode, but instead, make “height” mode completely unapproachable … ok.

2 Likes

@bitcoincashautist and I have implemented the draft version for BCHN.

It is here Draft: Implement `CHIP-2025-03 Faster Blocks for Bitcoin Cash` (!2184) · Merge requests · Bitcoin Cash Node / Bitcoin Cash Node · GitLab

@9500 can you re-synch to this codebase for your tempnet release? Thanks in advance.

6 Likes

Done: https://github.com/9500/bchn-tempnet is built from blocktime/proposed1 @ 344220cf (the head of !2184). Previous builds still available under their own tags.

3 Likes

Are you saying that, with more time, you could engineer a better solution?

For the latest transaction spec (v2), it’s not possible to retroactively alter immutable contracts.

@bitcoincashautist has proposed fixing time-locking with a new transaction version format, to make it cleaner and easier to use.

So eventually, there will likely be a new transaction version that may handle time-locking more easily without breaking old contracts.

But the CHIP allows current contract designers that are currently using heights may continue to use them unaffected on v2 transactions. If new developers decide to use height mode, they can still use height regardless for the next year with a little extra learning curve.

I don’t think anyone wants to block the chip to make life easier for contract designers that use height mode, given how much headache maintaining backward compatibility for that feature has caused.

4 Likes

FWIW when I was chatting with Calin he suggested to fix 10-min units at the VM/Script layer (Sighash algo, CLTV, CSV, and introspection opcodes) but keep nLockTime and nSequence height-mode still mean block index. This would avoid breaking wallets like node’s bitcoin-wallet and Electron Cash, but would make it harder to match opcode with TX field, and trade not-breaking those two wallets for breaking libraries like Libauth, CashScript, and mainnet.cash, and who knows how many dependent dapp frontends.

4 Likes

How was Cashfusion? it will be ok?

2 Likes

Unaffected, uses locktime=0 and 0-conf

https://bchexplorer.cash/tx/ab72aebc8d34a78a7e7a2619f4250a5793856f1841b4201bbe504a07b8ed3d79

3 Likes

Your point comes down to “Changes that touch the critical codebase are dangerous, so they shold not be applied”.

But the perfect counterpoint here is that “we only need to do the change once, as opposed to doing them every time the blocktime changes”

Ticks are a genius invention, widely used in games too, that simplify the change by controlling multiple aspects of the codebase with just a singular variable. Therefore, from logical standpoint, they are a simplifying force, not complicating force - future wise.

You could say ticks are basically “the mother of all automation” in regards to block sizes.

5 Likes

Yeah that’s a fair point. And fear of changing code is a paralyzing thing, so it’s best to overcome that.

I don’t know if they are genius but they do allow for blocktime changes in the future with minimal friction or problems, for sure.

Having a universal measure of “blockchain progress” abstracted away (from actual individual blocks exisiting or not)… is useful.

I am ok with this upgrade. In fact if for some random reason we don’t do it, it still might be useful to merge the tick abstraction anyway now in order to keep the options open.

It’s looking likely that this will lock-in, in which case BCHN at least is ready.

7 Likes

This is slightly offtopic, but still relevant:

Without ticks, you would be unable to reliably create complex games where timing is critical. Especially complex builder-style games, where each automation part is supposed to execute an exact number of actions in a specified time interval, regardless of actual CPU/system speed.

Ticks are a reliable and predictable time-scaling engine that is independent of external influences.

That’s why I call them “genius”.

2 Likes

@bchvenezuela @ShadowOfHarbringer moving here since it’s technical

Read carefully the draft mechanism idea: “where any 1 miner could commit all orphan block headers from some epoch”

For a miner to be able to commit orphan block headers - the headers have to exist in the first place! And how do they come into existence? Someone has to spend real hashes to mine a full PoW header - and if it’s an orphaned header it means they DID NOT get paid for it. So for someone to intentionally slow down the network, they’d have to maintain a burn of >2% of network’s hash to create enough orphans to create enough “evidence” that algo should slow down. If they stop burning, the network goes back to normal. The “any 1 miner” only performs the public service of writing the evidence (orphaned headers) to the chain. If there’s no such evidence available - he has noting he can submit.

1 Like

Yes, that is what I meant, sorry for being imprecise.

Miners could influence the blocktimes using producing orphaned blocks. They can orphan blocks on purpose, right? That should be relatively easy. Costly, but easy.

I do not know why would they want to manipulate blocktimes, but if it is possible, somebody will do it for some reason, probably nefarious/greedy reason.

Note that the problem is, we have not ever researched or even thought about what exactly would happen if miners could change blocktimes on the fly.

This is all novel, it completely changes the game. It’s no longer “Satoshi’s game”.

We would likely have to discuss and analyze this for years to figure out what exactly would/could happen.

2 Likes

Ok, so some general thinking here on a dynamic block time. Will the security budget ever factor into it?

In a world where the coinbase subsidy goes to zero and we completely rely on fees, the hash power at any given time may significantly depend upon the network activity and fees being collected.

During business hours, there may be more transactions, and hence more fees and a greater security budget. This increased security budget can afford faster blocks.

On holidays or other periods where transactions and their fees are low, and the hash rate is presumably low, then your blocks may not have much of a security budget. So you might want to increase block time so that each block can pay for enough hash to make it more secure.

So I’m just bringing this up as an item to think about for any dynamic block time work. Maybe its a non-issue.

We’re like fish living in water right now with the coinbase subsidy. Its not easy to conceive of a world where it doesn’t exist, its all we’ve known.

3 Likes

A discussion about ticks in one of the Telegram groups reminded me of this earlier idea:

Building on this, I think a future locktime improvement, perhaps in 2028 or later, would be an excellent complement to Faster Blocks. This would also preserve legacy locktime behavior while allowing future contracts to explicitly distinguish actual block height, tick progression, and MTP.

One useful addition could be direct introspection of consensus-enforced locks, ensuring declared conditions are either enforced or rejected, while allowing Script to inspect their effective type and value across inputs. This could simplify contract development, prevent subtle timelock mistakes, and build on the 2027 upgrade without expanding its scope.

4 Likes

On the security-budget question: what matters is reward per unit time, not reward per block. A 1-minute target splits the same subsidy and fee flow across more blocks unless fees actually rise; difficulty adjusts to hash rate, so low activity does not by itself mean slower blocks are safer. It may, however, increase reorg/orphan exposure per unit time. If block time becomes dynamic, I’d prefer it be driven by objective propagation/orphan metrics rather than fee volume, which is easier to game.

4 Likes

I would like to ask the developers a question. In the past, based on discussions that took place in the early years of BCH and analyses of potential attacks, experiments, etc., made by devs such as Dr. Peter Rizun, etc., there was talk of estimated amounts that could be considered safe for 0-conf, while considerably larger amounts (such as the payment for a car, a house, etc.) were reasonably deserving of a longer wait (1 to 6 confirmations).

I have personally heard examples in the range of 200 to 1000 USD.

The question is, now that we will have faster blocks, I would like to know if this changes, or if the calculation scenario (theoretical or experimental) has changed, or if there is a reference quantity that we can have at least for the purposes of practical examples.

I base this question on the following reasoning: it seems clear to me that ten 1-minute blocks provide roughly the same cumulative hash power for a confirmed transaction as a single 10-minute block would have provided. But… Considering that a 0-conf transaction is a transaction that will potentially get (now faster) a confirmation with one-tenth the hash power it would have had by waiting for a 10-minute transaction, does that influence our perception of this kind of amounts?

Should we really consider a 0-conf transaction to be “quite secure” for what amounts, and how secure will it become in approximately 1 minute? As secure as the cost of reorg that block? Is its security level equivalent to the cost of reorganizing that block? Are these nonsensical questions?

I want to point out that, despite the mental game of thinking of this as “something,” I know that with 10-minute blocks, that same transaction could still be an unconfirmed transaction instead of having become a confirmed transaction. But when we try to estimate example quantities, are factors like network profitability more important for estimating this than block time?

I understand that with each block mined after a transaction, the transaction becomes more secure (for instance, 2 confirmations in just 2–3 minutes is still better than 0-conf). However, I’d like to know if such a calculation still makes sense in the context of 2026, and how we might approach practical examples regarding transaction amounts—since I still believe that 0-conf transactions benefit from faster blocks.

From my perspective, 0-conf (the assumption that a transaction is secure once it has been broadcast) cannot become less secure simply because a confirmation is closer in time—even if that confirmation represents only a tenth of the hash power of a standard 10-minute block.

Can we assume that 0-conf transactions with 1-minute blocks are very secure for amounts like $200, for amounts as large as $1000, or for amounts like $20? What does the evidence from blockchains that already utilize faster blocks—such as Dash, Zcash, Dogecoin, or Litecoin—tell us?

Update: One possible answer (to the meta-question surrounding my post) is that a more attractive version of BCH—one with more transactions generating rewards for miners—could be compared (as if it were a “first universe”) to a less attractive version where miner rewards are lower. In this second, parallel universe, the potential hash power for a 10-minute block might actually be lower than the hash power seen in the first universe for a 1-minute block; in other words, there would be less hash power than in a successful version of BCH, where profitability benefits from favorable conditions. Of course, we can’t compare parallel universes because we only live in this one, but I think it would be a sensible answer. Even so, it doesn’t answer my question about amounts like 200 USD.

Update 2: Another objection that comes to mind regarding my approach is: suppose the estimated amount is a little lower, 100 USD… well, in approximately 1 minute, the security of that same transaction far exceeds what it had even for amounts greater than 1000 USD. Perhaps this concern that some might have about “lower amounts in 0-conf” is largely offset by the increased security of transacting. After all, 0-conf is a means of achieving secure transactions; We could certainly argue that if we had 10-second blocks, the amounts would be even smaller… but in 10 seconds you’re in a completely different scenario.

Even so, I would like to know if any of my questions have interesting answers.

1 Like

They do! I don’t have time for a full answer now but check out this post (and the few posts follow-up), I think it covers most of it: CHIP-2025-03 Faster Blocks for Bitcoin Cash - #210 by bitcoincashautist

2 Likes

This is a great discussion, and I’m glad minds are thinking about this.

This is such a complex topic.

Can’t we say that “safety” and “finalization” two sides of the same coin? Basically, aren’t they the same thing? Slower blocks depending on fee budget means that the number of confirmations is a meaningful number. Whereas if we keep block speed constant then the reorg depth becomes the new variable, to consider a transaction finalized, the user or wallet has to determine itself how many confirmations are appropriate given the network conditions (and that means they also need to objectively be able to determine what the network conditions are).

I think either way could work. But the main thing is we need to start thinking about fees as a number that goes into the equation just like hash and orphan rate.

1 Like