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

debug_traceCall using reconstructed msg from real transaction execution reverted #74

Closed
rekyyang opened this issue May 15, 2023 · 4 comments
Assignees

Comments

@rekyyang
Copy link

rekyyang commented May 15, 2023

System information

Erigon version: ./erigon --version

OS & Version: Windows/Linux/OSX

Commit hash:

Erigon Command (with flags/config):

Concensus Layer:

Concensus Layer Command (with flags/config):

Chain/Network: chapel

I reconstruct a request of debug_traceCall from real tx 0x4569fec4b067d4ef214e025bca090a167a249e4a81f8068b03789ced082412d3, but erigon return "execution Reverted", but our Meganode Archive can execute this transaction, I want to know the reason of Execution Reverted, and which one is correct?

Request

curl --location 'localhost:8545' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "id": 1, "method": "debug_traceCall", "params": [ { "from": "0xb4dd66d7c2c7e57f628210187192fb89d4b99dd4", "gas": "0x7fffffffffffffff", "gasPrice": "0x0", "callType": "call", "input": "0xf340fa01000000000000000000000000b4dd66d7c2c7e57f628210187192fb89d4b99dd4", "to": "0x0000000000000000000000000000000000001000", "value": "0x36ef88513e3f00" }, "0x1aeb816", { "tracer": "callTracer" } ] }'

Expected behaviour

{ "jsonrpc": "2.0", "id": 1, "result": { "from": "0x1284214b9b9c85549ab3d2b972df0deef66ac2c9", "gas": "0x2fa9cc8", "gasUsed": "0xc0fd", "to": "0x0000000000000000000000000000000000001000", "input": "0xf340fa010000000000000000000000001284214b9b9c85549ab3d2b972df0deef66ac2c9", "calls": [ { "from": "0x0000000000000000000000000000000000001000", "gas": "0x8fc", "gasUsed": "0x0", "to": "0x000000000000000000000000000000000000dead", "input": "0x", "value": "0x57e5a6e863980", "type": "CALL" } ], "value": "0x36ef88513e3f00", "type": "CALL" } }

Actual behaviour

{ "jsonrpc": "2.0", "id": 1, "result": { "from": "0x1284214b9b9c85549ab3d2b972df0deef66ac2c9", "gas": "0x23c2f3f8", "gasUsed": "0x5236", "to": "0x0000000000000000000000000000000000001000", "input": "0x", "error": "execution reverted", "value": "0x36ef88513e3f00", "type": "CALL" } }

Steps to reproduce the behaviour

Backtrace

[backtrace]
@tangbinyeer
Copy link

The same problem exists on the bsc mainnet.
tx hash: 0x01c3146aaaaeffe7e68191e053b572daa6c02fd952c1d48470668bd045aab840

{'from': '0x21d45650db732ce5df77685d6021d7d5d1da807f', 'gas': '0x2d710', 'gasUsed': '0x5236',
 'to': '0x0000000000000000000000000000000000001000', 'input': '0x', 'error': 'execution reverted',
  'value': '0xa52906b88c400', 'type': 'CALL'}

@calmbeing
Copy link

Also happened in other chains erigontech#7568, will test it

@simpsoncarlos3
Copy link

same issue here. looks like upstream also have this problem.
can you please try to fix it in bsc?

@github-actions
Copy link

github-actions bot commented Sep 5, 2023

This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@rekyyang @tangbinyeer @simpsoncarlos3 @setunapo @calmbeing and others