mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
fix(rpc): prevent u64 underflow when re-executing genesis block (#22532)
This commit is contained in:
@@ -155,6 +155,10 @@ where
|
||||
return Ok(None)
|
||||
};
|
||||
|
||||
if start_block == 0 {
|
||||
return Ok(Some(ExecutionOutcome::default()))
|
||||
}
|
||||
|
||||
let state_provider = self.provider().history_by_block_number(start_block - 1)?;
|
||||
let db = reth_revm::database::StateProviderDatabase::new(&state_provider);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user