Openzeppelin create (on private-geth) => check your gas limit ERROR

This is my genesis.json. I created this file using Puppeth so it is very long but the rest part is not important. :slightly_smiling_face:

{
  "config": {
    "chainId": 44,
    "homesteadBlock": 0,
    "eip150Block": 0,
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 5,
    "constantinopleBlock": 10,
    "constantinopleFixBlock": 20
  },
  "nonce": "0x0",
  "timestamp": "0x5d456da8", 
  "extraData": "0x00",
  "gasLimit": "0x7A1200",
  "difficulty": "0x1",
  "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "coinbase": "0x0000000000000000000000000000000000000000",
  "alloc": {
    "0000000000000000000000000000000000000000": {
      "balance": "0x1"
    },
...

The gasLimit 0x7A1200 is 8,000,000.

2 Likes

@swkim109, really thanks~~

my private-geth also works after adding below to genesis.json.

"constantinopleFixBlock": xx

All my problems above seem to be caused by missing this line,
I've searched for serveral eipXXXBlock issue, but didn't found this yet.

Thank you very much ~~

ps.: I think OpenZeppelin/openzeppelin-sdk#1236
can be closed with this one line on genesis.json

3 Likes

My pleasure. :wink:
That fork is related to EIP-1283. I can’t explain the causes of your error exactly but I guess EIP-1283 is highly related with GAS…

By the way, your first error in Geth 1.8.22 is still somewhat weird. That error can not be related with EIP-1283… :thinking:

2 Likes

Great news @Yong_Kim, I will close OpenZeppelin/openzeppelin-sdk#1236

Thanks :pray: @swkim109 for solving this. Fantastic work.

1 Like