System information
Erigon version: 2.58.1-f12e451c
OS & Version: Linux
Commit hash: f12e451
Erigon Command (with flags/config):
--chain=amoy\
--bor.heimdall="http://localhost:1317" \
--snapshots=true \
--p2p.protocol=66 \
--bor.milestone=true \
--txpool.disable
Consensus Layer: Heimdall
Consensus Layer Command (with flags/config):
--chain=amoy \
--rest-server \
--chain-id=80002
Chain/Network: Matic Amoy Testnet
Expected behaviour
debug_traceBlockByNumber does not return error
Actual behaviour
$ curl -X POST --data '{"method":"debug_traceBlockByNumber","params":["0xff", {"tracer": "callTracer"}],"id":"synth_debug","jsonrpc":"2.0"}' -H "Content-Type: application/json" localhost:8545
{"jsonrpc":"2.0","id":"synth_debug","result":null,"error":{"code":-32000,"message":"invalid arguments; block with number 255 not found"}}
Downgrading to v2.57.3 fixes the issue