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_traceBlockByNumber cannot process block #260

Closed
DNK90 opened this issue Apr 13, 2023 · 0 comments · Fixed by #259
Closed

debug_traceBlockByNumber cannot process block #260

DNK90 opened this issue Apr 13, 2023 · 0 comments · Fixed by #259

Comments

@DNK90
Copy link
Contributor

DNK90 commented Apr 13, 2023

System information

OS & Version: OSX

Description

Block can not be executed when using api debug_traceBlockByNumber in debug mode

Expected behaviour

Data responded without error code and messages

Actual behaviour

Messages responded like below

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "insufficient funds for gas * price + value: address 0xbD4bf317Da1928CC2f9f4DA9006401f3944A0Ab5 have 0 want 1190760000000000"
    }
}

Steps to reproduce the behaviour

  • Enable debug mode
  • The block must have at least 2 transactions
  • miner's balance must be less than block's gas used
  • Call debug_traceBlockByNumber
curl --location 'https://api-archived.roninchain.com/rpc' \
--header 'Content-Type: application/json' \
--data '{"method":"debug_traceBlockByNumber","params":["0x161520b", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant