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 not working if gas price is not enough or not set (behavior different from Geth) #3494

Closed
zzh1996 opened this issue Feb 12, 2022 · 8 comments
Labels

Comments

@zzh1996
Copy link

zzh1996 commented Feb 12, 2022

Erigon version: 2022.02.02-beta
OS & Version: Linux

Request:

curl http://127.0.0.1:8545/ -H "Content-Type: application/json" --data '{
        "method": "debug_traceCall",
        "params" :[
                {
                    "from": "0x0123456789012345678901234567890123456789",
                    "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
                    "data": "0x",
                    "value": "0x0"
                },
                "latest", {"tracer": "callTracer"}
        ],
        "id": 0,
        "jsonrpc": "2.0"
}'

Erigon response:

{"jsonrpc":"2.0","id":0,"error":{"code":-32000,"message":"tracing failed: fee cap less than block base fee: address 0x0123456789012345678901234567890123456789, gasFeeCap: 0 baseFee: 54337541210"}}

Geth response:

{"jsonrpc":"2.0","id":0,"result":{"type":"CALL","from":"0x0123456789012345678901234567890123456789","to":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","value":"0x0","gas":"0x2fa9e78","gasUsed":"0xef7","input":"0x","output":"0x"}}
@geomad
Copy link

geomad commented Feb 19, 2022

I think that's done to be consistent with OpenEthereum that handled traces this way. Imo its not ideal though, geths behavior here is better. Would love to see a flag on rpc deamon to mimic geths tracecall.

@zzh1996
Copy link
Author

zzh1996 commented Feb 19, 2022

I think that's done to be consistent with OpenEthereum that handled traces this way. Imo its not ideal though, geths behavior here is better. Would love to see a flag on rpc deamon to mimic geths tracecall.

Thanks for your reply. As far as I know, OE does not have this RPC. All OE tracing API starts with trace_. debug_traceCall is a geth API.

@quickchase
Copy link
Contributor

Is anyone having issues using debug_traceCall with archive blocks? I'm getting:

{"jsonrpc":"2.0","id":1,"result":null,"error":{"code":-32000,"message":"block 18992271(9c7cb3118bc32a473de8ed2cc98d8a3ba7e616a518db75b2beaa483dc2823809) not found"}}

But the block is available via eth_getBlockByNumber on 2022.07.3

This is with BSC Mainnet

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Jun 14, 2023
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@soos3d
Copy link

soos3d commented Apr 5, 2024

Any plan to fix this? It would make sense that it behaves the same as Geth.

@dwampa
Copy link

dwampa commented May 13, 2024

Hello Team!
Any updates on this? Would love to see a fix for this.

@aertoria
Copy link

Hello team, any update on this?

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

No branches or pull requests

6 participants