Open
Description
current error message:
seek with txNum=1962853355 but data before txNum=2662500000 is not available: blockNum=16999999, txNum=1962853355, seek with txNum=1962853355 but data before txNum=2662500000 is not available
example request:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method": "eth_getLogs","params": [ {"fromBlock": "0x103663f", "toBlock": "0x103663f"} ], "id":1}' -s localhost:8546
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"state transitaion failed: seek with txNum=1962853355 but data before txNum=2662500000 is not available: blockNum=16999999, txNum=1962853355, seek with txNum=1962853355 but data before txNum=2662500000 is not available"}}
- user didn't request txNum
- user likely doesn't know what is TxNum - because it's not Ethereum concept
- reason why data is not available is not clear. reason is: "likely pruned"
- error message repeated twice
- This is error message from
ii.seekInFiles
method (GetAsOf). But we have special error message:state.PrunedError
for this cases. It's because we have several places whereNewHistoryReaderV3
created withoutCreateHistoryStateReader
helper. My advise (but up to you) - let's move.StateHistoryStartFrom()
call insideSetTxNum
method.
thank you
Activity