node icon indicating copy to clipboard operation
node copied to clipboard

Reduce ZetaChain Blocktime

Open CharlieMc0 opened this issue 9 months ago • 4 comments

We want to reduce the ZetaChain blocktime down to 2 or 3 seconds. This will make it easier for developer and users to submit data on-chain and reduces the wait time after submitting a transaction. It also makes are more competitive with other L1s when comparing specs side to side.

Describe the solution you'd like Ultimately we want 3 seconds or faster block times. I think 2 seconds is achievable with minimal changes.

CharlieMc0 avatar Mar 10 '25 15:03 CharlieMc0

These are the subtasks I know about but there are probably more I am not thinking of.

  • Remove any hardcoded references to the 6 second block time
  • Ensure emissions calculations are updated
  • Force all nodes to update their timeout_commit and other values in config.toml at upgrade time.

CharlieMc0 avatar Mar 10 '25 15:03 CharlieMc0

I think this one (https://github.com/zeta-chain/node/issues/350) is a blocker as well...

swift1337 avatar Mar 10 '25 20:03 swift1337

Most of the state growth concerns external modules, so this part would not be trivial if it is a concern. We would need to investigate EVM module investigation in our fork.

Though I'm not sure if the block time would influence the state growth this much, EVM would be mainly influence by the number of txs. Staking module state growth might be influence by block time.

lumtis avatar Mar 11 '25 10:03 lumtis

The distributions module might be the most impacted since we create new allocations every block.

But I don't think there is anything we can do since it's an external module. Any changes would be non-trivial .

kingpinXD avatar Mar 14 '25 05:03 kingpinXD