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

False Error on Trace_block, first run for txIndex XX error: insufficient funds for gas * price + value #12092

Closed
jwelch-qn opened this issue Sep 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working imp1 High importance
Milestone

Comments

@jwelch-qn
Copy link

System information

Erigon version: erigon/2.60.8

OS & Version: Ubuntu 22.04

Commit hash: dec9d20

Erigon Command (with flags/config):

curl <Erigon_Endpoint> -X POST   -H "Content-Type: application/json"  --data '{"method":"trace_block","params":["0x24A931"],"id":1,"jsonrpc":"2.0"}'

Consensus Layer: Lighthouse

Consensus Layer Command (with flags/config): N/A

Chain/Network:
Ethereum-Holesky

Expected behaviour

Get tracees for each transaction in the block

Actual behaviour

Get first run for txIndex XX error: insufficient funds for gas * price + value error

Block in question: https://holesky.etherscan.io/txs?block=2402609
Has two reverted txs in the block, but not seemingly related to the error message.
The error refers to the tx at index 26 which is https://holesky.etherscan.io/tx/0x8a60c0ffb6ddb4cf88c0b462063d0a4cb2d31403c0b5fa6b2af1faae8b66597e
the explorer shows it was successful.

eth_getBlockByNumber for 0x24A931 also shows this tx:

   {
      "txHash": "0x8a60c0ffb6ddb4cf88c0b462063d0a4cb2d31403c0b5fa6b2af1faae8b66597e",
      "result": {
        "from": "0x0fd5c0c300b9075d62406da142ab4bbaac908aed",
        "gas": "0x5208",
        "gasUsed": "0x5208",
        "to": "0x7566b700c0eaac88b521536f4e4e1b5b9afe6fe1",
        "input": "0x",
        "value": "0xc4fac0be04544",
        "type": "CALL"
      }

Steps to reproduce the behaviour

curl <Erigon_Endpoint> -X POST -H "Content-Type: application/json" --data '{"method":"trace_block","params":["0x24A931"],"id":1,"jsonrpc":"2.0"}'

@VBulikov VBulikov added the imp1 High importance label Oct 4, 2024
@VBulikov VBulikov added this to the 2.60.9-fixes milestone Oct 4, 2024
@VBulikov VBulikov added the bug Something isn't working label Oct 4, 2024
@VBulikov VBulikov modified the milestones: 2.60.9-fixes, 2.60.10-fixes Oct 23, 2024
@quickchase
Copy link
Contributor

Same error is happening on Ethereum Mainnet for block 0x140e6e3 (21030627)

{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"first run for txIndex 85 error: insufficient funds for gas * price + value: address 0x0b92619DdE55C0cbf828d32993a7fB004E00c84B have 1414044108792614043 want 1414044806692614043"}}

@racytech racytech self-assigned this Oct 23, 2024
@racytech
Copy link
Contributor

racytech commented Oct 23, 2024

Thanks for posting this. I think those 2 are related #12242 issues. Looking into that

@yperbasis
Copy link
Member

Fixed by PR #12559 and will be released in v2.60.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working imp1 High importance
Projects
None yet
Development

No branches or pull requests

5 participants