Skip to content
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

Could not determine contract creator for genesis contracts #5675

Closed
ghost opened this issue Jun 15, 2022 · 1 comment · Fixed by #6481
Closed

Could not determine contract creator for genesis contracts #5675

ghost opened this issue Jun 15, 2022 · 1 comment · Fixed by #6481

Comments

@ghost
Copy link

ghost commented Jun 15, 2022

Environment

  • Elixir & Erlang/OTP versions (elixir -version): 24
  • Operating System: Linux
  • Blockscout Version/branch: master

Environment variables

export ETHEREUM_JSONRPC_VARIANT=geth
export CHAIN_SPEC_PATH=/path/to/genesis.json

Steps to reproduce

genesis.json

{
  "config": {
    "chainId": 6016,
    "homesteadBlock": 0,
    "eip150Block": 0,
    "eip155Block": 0,
    "eip158Block": 0,
    "byzantiumBlock": 0,
    "constantinopleBlock": 0,
    "petersburgBlock": 0,
    "istanbulBlock": 0,
    "berlinBlock": 0,
    "londonBlock": 0,
    "clique": {
      "period": 1,
      "epoch": 150000
    }
  },
  "timestamp": "0x62aa1276",
  "difficulty": "1",
  "gasLimit": "8000000",
  "extraData": "0x00000000000000000000000000000000000000000000000000000000000000006c920b84817715fcf62EeE5a23b2A4286209e49E8e7D1db4a4f94397456d4240b6Eebc1adAd4e9Dc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "alloc": {
    "0x6c920b84817715fcf62EeE5a23b2A4286209e49E": { "balance": "1000000000000000000000000000000000000000" },
    "0x8e7D1db4a4f94397456d4240b6Eebc1adAd4e9Dc": { "balance": "1000000000000000000000000000000000000000" },
    "0x0000000000000000000000000000000000001000": {
      "balance": "0x0",
      "code": "0x6080604052600436106100865760003560e01c80638da5cb5b116100595780638da5cb5b146101135780639623609d1461013157806399a88ec414610144578063f2fde38b14610164578063f3b7dead1461018457600080fd5b8063204e1c7a1461008b578063715018a6146100c75780637eff275e146100de5780638129fc1c146100fe575b600080fd5b34801561009757600080fd5b506100ab6100a6366004610663565b6101a4565b6040516001600160a01b03909116815260200160405180910390f35b3480156100d357600080fd5b506100dc610235565b005b3480156100ea57600080fd5b506100dc6100f9366004610687565b610274565b34801561010a57600080fd5b506100dc6102fe565b34801561011f57600080fd5b506033546001600160a01b03166100ab565b6100dc61013f3660046106d6565b610373565b34801561015057600080fd5b506100dc61015f366004610687565b610404565b34801561017057600080fd5b506100dc61017f366004610663565b61045c565b34801561019057600080fd5b506100ab61019f366004610663565b6104f4565b6000806000836001600160a01b03166040516101ca90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d8060008114610205576040519150601f19603f3d011682016040523d82523d6000602084013e61020a565b606091505b50915091508161021957600080fd5b8080602001905181019061022d91906107ac565b949350505050565b6033546001600160a01b031633146102685760405162461bcd60e51b815260040161025f906107c9565b60405180910390fd5b610272600061051a565b565b6033546001600160a01b0316331461029e5760405162461bcd60e51b815260040161025f906107c9565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b1580156102e257600080fd5b505af11580156102f6573d6000803e3d6000fd5b505050505050565b600061030a600161056c565b90508015610322576000805461ff0019166101001790555b61032a6105f4565b8015610370576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b6033546001600160a01b0316331461039d5760405162461bcd60e51b815260040161025f906107c9565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906103cd90869086906004016107fe565b6000604051808303818588803b1580156103e657600080fd5b505af11580156103fa573d6000803e3d6000fd5b5050505050505050565b6033546001600160a01b0316331461042e5760405162461bcd60e51b815260040161025f906107c9565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102c8565b6033546001600160a01b031633146104865760405162461bcd60e51b815260040161025f906107c9565b6001600160a01b0381166104eb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161025f565b6103708161051a565b6000806000836001600160a01b03166040516101ca906303e1469160e61b815260040190565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff16156105b3578160ff16600114801561058f5750303b155b6105ab5760405162461bcd60e51b815260040161025f90610863565b506000919050565b60005460ff8084169116106105da5760405162461bcd60e51b815260040161025f90610863565b506000805460ff191660ff92909216919091179055600190565b600054610100900460ff1661061b5760405162461bcd60e51b815260040161025f906108b1565b610272600054610100900460ff166106455760405162461bcd60e51b815260040161025f906108b1565b6102723361051a565b6001600160a01b038116811461037057600080fd5b60006020828403121561067557600080fd5b81356106808161064e565b9392505050565b6000806040838503121561069a57600080fd5b82356106a58161064e565b915060208301356106b58161064e565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156106eb57600080fd5b83356106f68161064e565b925060208401356107068161064e565b9150604084013567ffffffffffffffff8082111561072357600080fd5b818601915086601f83011261073757600080fd5b813581811115610749576107496106c0565b604051601f8201601f19908116603f01168101908382118183101715610771576107716106c0565b8160405282815289602084870101111561078a57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b6000602082840312156107be57600080fd5b81516106808161064e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60018060a01b038316815260006020604081840152835180604085015260005b8181101561083a5785810183015185820160600152820161081e565b8181111561084c576000606083870101525b50601f01601f191692909201606001949350505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220bdc16c24296579569aea367305030b8031813cdc449c095e4cfce6134659b41e64736f6c634300080e0033"
    }
  }
}

Capture

Capture

Expected behaviour

It should return address(0) as a contract creator

Actual behaviour

With this error I could not verify contract code for the contracts deployed from genesis blocks.

@vbaranov
Copy link
Member

@nikitosing it looks like a verification of precompiled contracts is disabled with the current verification approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Contracts improvements
Awaiting triage
Development

Successfully merging a pull request may close this issue.

3 participants