mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05: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