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
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
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