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

insufficient funds for gas error for tracing methods #215

Open
1 task done
AntonieDavid opened this issue Jan 9, 2025 · 1 comment
Open
1 task done

insufficient funds for gas error for tracing methods #215

AntonieDavid opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@AntonieDavid
Copy link

Describe the bug

Both trace_replayBlockTransactions and trace_filter fail with the identical “insufficient funds for gas…” error only on the Reth-based client.
On Erigon, both calls work as expected and return the correct trace data.

Steps to reproduce

curl localhost:8545
-X POST
-H "Content-Type: application/json"
--data '{"method":"trace_filter","params":[{"fromBlock":"0x2B7D0EC","toBlock":"0x2B7D0EC"}],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"error":{"code":-32003,"message":"insufficient funds for gas * price + value: have 7616554218542372 want 11504826229253040"}}

curl -s -X POST --data '{"jsonrpc":"2.0","method":"trace_replayBlockTransactions","params":["0x2b4f076", ["stateDiff"]],"id":1}' -H "Content-Type:application/json" localhost:8545
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32003,
"message": "insufficient funds for gas * price + value: have 10000000000000000 want 97950113845279020"
}
}

Node logs

node config:
=/usr/local/bin/bsc-reth node \
  --ws --ws.port=8546 --ws.addr=0.0.0.0   --ws.origins="*" \
  --http --http.port=8545 --http.addr=0.0.0.0 \
  --http.corsdomain="*" \
  --datadir=/data/ \
  --http.api=admin,debug,eth,net,trace,web3,rpc,reth,ots,txpool \
  --ws.api=admin,debug,eth,net,trace,web3,rpc,reth,ots,txpool \
  --metrics 0.0.0.0:6060 \
  --chain bsc \
  --rpc.gascap=1100000000 \
  --rpc.max-connections 429496729 \
  --rpc.max-logs-per-response 0 \
  --rpc.max-subscriptions-per-connection 10000 \
  --rpc.eth-proof-window=100000 \
  --enable-prefetch \
  --optimize.enable-execution-cache

Platform(s)

Linux (ARM)

What version/commit are you on?

bsc-reth --version
reth-bsc-cli Version: 1.1.0
Commit SHA: 14f6308
Build Timestamp: 2024-12-19T09:22:50.623904913Z
Build Features: asm_keccak,bsc,jemalloc
Build Profile: maxperf

What database version are you on?

.

Which chain / network are you on?

bsc mainnet

What type of node are you running?

Archive (default)

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@pythonberg1997
Copy link
Contributor

You can try with debug API for now(debug_traceBlockByNumber). We will fix this ASAP.

@bnb-chain bnb-chain deleted a comment Jan 10, 2025
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

No branches or pull requests

2 participants