开发者社区> 问答> 正文

Error:exceeds block gas limit undefined?

Error:exceeds block gas limit undefined?

展开
收起
景凌凯 2020-03-18 19:01:51 1498 0
2 条回答
写回答
取消 提交回答
  • 大佬们求救!我用的infura申请的以太坊ropstan测试网接口,部署合约使用java的web3j,遇到报错Error: exceeds block gas limit,求大神们支招!欢迎联系qq:1206814310 急!万分感谢!

    2021-04-09 15:43:06
    赞同 展开评论 打赏
  • 有点尴尬唉 你要寻找的东西已经被吃掉啦!

    将创世区块的配置文件genesis.json中的参数gasLimit设置为0xffffffff(十进制值为4294967295)。重新初始化,生成区块,查看区块信息。

    > eth.blockNumber
    20
    > eth.getBlock(20)
    {
      difficulty: 132288,
      extraData: "0xd783010801846765746886676f312e31308664617277696e",
      gasLimit: 4211854946,
      gasUsed: 0,
      hash: "0x98a230aa2d7aaee1b92732488aff3571d9569b44ee2c52bd2a47cc115649ba1d",
      logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      miner: "0xb6cd75af6594f46374378cf3a7d9cbfc06485994",
      mixHash: "0xef93a1be29bbabcf7e6a9d2031b2b76b224547c77aa4f5a6d5edaa1ed538e428",
      nonce: "0x756c86cc86699021",
      number: 20,
      parentHash: "0x62dacb00b038677688e70da047f5074038caa8ac16d161118a06b8a053789bda",
      receiptsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
      sha3Uncles: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
      size: 536,
      stateRoot: "0xc74d4094304b408ac107955a721c1a45393687672cf1ab40761c1bf37cc5efff",
      timestamp: 1519531846,
      totalDifficulty: 2764672,
      transactions: [],
      transactionsRoot: "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
      uncles: []
    }
    
    
    2020-03-18 19:02:11
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
DRIZZLE:LOW LANTENCY EXECUTION 立即下载
Towards A Fault-Tolerant Speaker Verification System: A Regularization Approach To Reduce The Condition Number 立即下载
KR^X- Comprehensive- Kernel-Protection-Against-Just-In-Time-Code-Reuse 立即下载