-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting block_interval_ms to values lower than 175 results in "3030000 block_validate_exception: Block exception" #1782
Comments
Some additional context why we need this: We are working on a modification of Leap that integrates a deterministic high-performance physics engine, allowing Leap to be utilized as an authoritative game server. The primary components of authoritative game servers typically include a physics engine and low-latency networking. The goal is to empower game developers to implement the entire game logic on the blockchain, facilitating the launch of sidechains based on specific use cases and game logic with a relatively small set of producers and/or in geographically less decentralized networks. A smaller block time of 100ms (equivalent to 10 authoritative frames per second) or 50ms (equivalent to 20 authoritative frames per second) is necessary to avoid more complex implementations that synchronize time and validated transaction count between frames in other ways without disrupting consensus. For many games, having 10 or 20 authoritative frames provides a suitable balance, while client-side prediction mechanisms must be employed to increase the rendered frame rate. This innovative approach opens up exciting possibilities for blockchain-based game development by enabling the integration of comprehensive game logic on the blockchain, all while maintaining a high level of determinism and low-latency networking. |
Sry, that makes sense. Just verified the issue by setting default_max_block_cpu_usage to 20ms, which is resulting in the same log and Block Exception. Just to make sure we are on the same page: I'm setting block_interval_ms to 174 and default_max_block_cpu_usage to 20'000 |
The problem is overflow in Or you will need to make |
Awesome, thanks @heifner I'll try around with this tomorrow. I assume it will allow us to continue with our development and testing for some time. |
Setting block_interval_ms to values lower than 175 results in "3030000 block_validate_exception: Block exception"
Tested this (already a while ago) with leap 4.x.x and now with the new 5.0.0-RC2 version.
Log of nodeos running with block_interval_ms = 175 (leap 5.0.0-RC2):
Log of nodeos running with block_interval_ms = 174 (leap 5.0.0-RC2):
The text was updated successfully, but these errors were encountered: