Open BowTiedDevil opened 1 week ago
possible that we are skipping the in-memory state, and checking straight away on storage. which would explain why it works fine when its not actively syncing
or actually might be related to https://github.com/paradigmxyz/reth/issues/10037 on block_state_by_tx_id
possibly related https://github.com/paradigmxyz/reth/issues/10181
Describe the bug
When op-reth is actively synced and following the chain tip using the experimental engine, calls to
eth_getLogs
(and probably others) throw errors like:(code: -32603, message: no transaction found for Number(689728934), data: None) (1x)
Curiously, the errors only occur when the node is actively syncing. If I disable the consensus client (op-node), op-reth will paused at the last block height and the same RPC calls complete without any error. Resuming the sync by restarting op-node will result in the calls failing again.
Steps to reproduce
Run reth or op-reth with
--engine.experimental
and execute a large RPC call toeth_getLogs
using cryo or similar.Here is a simple bash script that executes a series of large calls against my op-reth node synced to Base mainnet:
fetch_base.sh
Node logs
No response
Platform(s)
Linux (x86)
What version/commit are you on?
reth-optimism-cli Version: 1.0.7 Commit SHA: 9f234430295f0a3c6ee3c2733d9e347ddee5b1e8 Build Timestamp: 2024-09-19T18:04:36.208737399Z Build Features: asm_keccak,optimism Build Profile: maxperf
What database version are you on?
Current database version: 2 Local database version: 2
Which chain / network are you on?
base
What type of node are you running?
Pruned with custom reth.toml config
What prune config do you use, if any?
[prune] block_interval = 5
[prune.segments] sender_recovery = "full" account_history = { distance = 10064 } storage_history = { distance = 10064 }
If you've built Reth from source, provide the full command you used
No response
Code of Conduct