Skip to content

eth_simulate not working on v1.6.2 #3430

@wew6d48g

Description

@wew6d48g

System information

Geth version: v1.6.2
OS & Version: ubuntu 22.04
Arguments:
--history.transactions=360000
--history.blocks=360000
--history.logs.disable=true
--multidatabase=true
--tries-verify-mode=none

Description

synced from bnb48 fast node snapshot

  • Steps to reproduce the behaviour
  • eth_simulate works on v1.5.19, but errors or has issues on v1.6.2
  • using block and 0.75s timestamp overrides
curl -s -X POST http://localhost:8545 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"eth_simulateV1",
    "params":[
      {
        "blockStateCalls":[
          {
            "stateOverrides": {
              "0x8a1b2c3d4e5f60718293a4b5c6d7e8f901234567": {
                "balance": "0xDE0B6B3A7640000"
              }
            },
            "calls": [
              {
                "from": "0x8a1b2c3d4e5f60718293a4b5c6d7e8f901234567",
                "to": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
                "value": "0xDE0B6B3A7640000",
                "data": "0xd0e30db0"
              }
            ]
          },
	  {
            "calls": [
 	      {
                "from": "0x8a1b2c3d4e5f60718293a4b5c6d7e8f901234567",
                "to": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
                "data": "0x70a082310000000000000000000000008a1b2c3d4e5f60718293a4b5c6d7e8f901234567"
              }
            ]
          }
        ],
        "traceTransfers": true
      }
    ]
  }'
  • Expected behaviour
  • doing a sim of wrapping eth then next block balanceOf returns weth amount
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [
        {
          "returnData": "0x",
          "logs": [
            {
              "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
              "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "0x0000000000000000000000008a1b2c3d4e5f60718293a4b5c6d7e8f901234567",
                "0x000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
              ],
              "data": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
              "blockNumber": "0x3f93aa1",
              "transactionHash": "0x52fd73dba0b836dc683ec7021005adfb34ee8dad7134581e0452d6a1f355860c",
              "transactionIndex": "0x0",
              "blockHash": "0xbe3d4572819b29a40703919ed2a9123c490873cadea0181dd57a7ea03a5998b0",
              "logIndex": "0x0",
              "removed": false
            },
            {
              "address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
              "topics": [
                "0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
                "0x0000000000000000000000008a1b2c3d4e5f60718293a4b5c6d7e8f901234567"
              ],
              "data": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
              "blockNumber": "0x3f93aa1",
              "transactionHash": "0x52fd73dba0b836dc683ec7021005adfb34ee8dad7134581e0452d6a1f355860c",
              "transactionIndex": "0x0",
              "blockHash": "0xbe3d4572819b29a40703919ed2a9123c490873cadea0181dd57a7ea03a5998b0",
              "logIndex": "0x1",
              "removed": false
            }
          ],
          "gasUsed": "0xafee",
          "status": "0x1"
        }
      ],
      "difficulty": "0x2",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0x5f75e77",
      "gasUsed": "0xafee",
      "hash": "0xbe3d4572819b29a40703919ed2a9123c490873cadea0181dd57a7ea03a5998b0",
      "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "miner": "0x38944092685a336cb6b9ea58836436709a2adc89",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "nonce": "0x0000000000000000",
      "number": "0x3f93aa1",
      "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "parentHash": "0x0c4ced87c9db3e4cefbf5be20b17f64a69016d35b678f2e2db2d89b56a487610",
      "receiptsRoot": "0xf5c304fdcfad469f75adeffad8a6f06441819aad7444cf12ee39f959a844d67d",
      "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
      "size": "0x27c",
      "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "timestamp": "0x6905fb8c",
      "totalDifficulty": "0x7e9911e",
      "transactions": [
        "0x52fd73dba0b836dc683ec7021005adfb34ee8dad7134581e0452d6a1f355860c"
      ],
      "transactionsRoot": "0x290c04f92b693b19503269a50f672b543b005d993edd5a12e99dd2f2d479b8b1",
      "uncles": [],
      "withdrawals": [],
      "withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
    },
    {
      "baseFeePerGas": "0x0",
      "blobGasUsed": "0x0",
      "calls": [
        {
          "returnData": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
          "logs": [],
          "gasUsed": "0x5d9e",
          "status": "0x1"
        }
      ],
      "difficulty": "0x2",
      "excessBlobGas": "0x0",
      "extraData": "0x",
      "gasLimit": "0x5f75e77",
      "gasUsed": "0x5d9e",
      "hash": "0xa7c5d5c2d2b768dc44bf38c3ccd0c5eac292df080f9ceafaee0320cabe677395",
      "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "miner": "0x38944092685a336cb6b9ea58836436709a2adc89",
      "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "nonce": "0x0000000000000000",
      "number": "0x3f93aa2",
      "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "parentHash": "0x3559cf732354dc9ca7fd0f5f9e8a3741595d2b21a3df6e6dfee734a5e1464354",
      "receiptsRoot": "0xea4a4307b11ed19be4411a0e474a0f09af2e63bada7f4084c0497e8db4ae76f4",
      "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
      "size": "0x297",
      "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "timestamp": "0x6905fb8c",
      "totalDifficulty": "0x7e9911e",
      "transactions": [
        "0x265b05d54cb55b5597ca93c1e99623bc921c74d809848da928c0f13bfb2208ae"
      ],
      "transactionsRoot": "0xdbde917a029fb4ea60c7941955d4380335099c5ff36ba077ce5f02251b18392d",
      "uncles": [],
      "withdrawals": [],
      "withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
    }
  ]
}
  • Actual behaviour
  • on v1.6.2 get error "Err: supposed to get a actual transaction, but get none"
  • also get errors "parent not found", calls and logs are also missing
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32000,
    "message": "parent not found"
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions