mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
fix(rpc): validate toBlock in trace_filter (#21718)
This commit is contained in:
@@ -353,6 +353,9 @@ where
|
||||
return Err(EthApiError::HeaderNotFound(start.into()).into());
|
||||
}
|
||||
let end = to_block.unwrap_or(latest_block);
|
||||
if end > latest_block {
|
||||
return Err(EthApiError::HeaderNotFound(end.into()).into());
|
||||
}
|
||||
|
||||
if start > end {
|
||||
return Err(EthApiError::InvalidParams(
|
||||
|
||||
Reference in New Issue
Block a user