Error:exceeds block gas limit undefined?
大佬们求救!我用的infura申请的以太坊ropstan测试网接口,部署合约使用java的web3j,遇到报错Error: exceeds block gas limit,求大神们支招!欢迎联系qq:1206814310 急!万分感谢!
将创世区块的配置文件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: []
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。