SigmaGmbH / swisstronik-chain

Swisstronik is an identity-based hybrid layer-1 blockchain ecosystem. It lets Web 3.0 and traditional companies build KYC, AML and DPR compliant applications with enhanced data privacy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exceeds block gas limit in local testnet

MikkySnow opened this issue · comments

1. Bug/Vulnerability Description

EVM fails on any transaction with error Exceeds block gas limit if max_gas param set to -1 at consensus_params in genesis.json

  "consensus_params": {
    "block": {
      "max_bytes": "22020096",
      "max_gas": "-1",
      "time_iota_ms": "1000"
    }

2. Hardware and Software Specifications

  • OS Name & version: Ubuntu 22.04
  • CPU Name & Brand Intel Xeon E2236
  • Go version -
  • Rust version -
  • SGX version (optional)
  • [-] Docker environment

3. Steps to Reproduce

Set max_gas in genesis.json to -1

4. Impact Analysis

genesis.json files, generated by swisstronikd testnet init-files command will have such issue

5. Code Fix Submission

Replace default value of max_gas (-1) with actual block gas limit (20_000_000) in swisstronikd testnet init-files command

6. Choose the Right Label

ADDITIONAL BUGS, NODE BUGS


Thank you for contributing to the improvement of our project!👨‍💻👩‍💻


Swisstronik internal use only

  • [+] Not duplicate issue
  • [+] Appropriate labels applied