mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-08 05:55:21 -05:00
fix: off by one unwind range (#2960)
This commit is contained in:
@@ -109,7 +109,7 @@ impl Subcommands {
|
||||
.ok_or_else(|| eyre::eyre!("Block hash not found in database: {hash:?}"))?,
|
||||
BlockHashOrNumber::Number(num) => *num,
|
||||
},
|
||||
Subcommands::NumBlocks { amount } => last.0.saturating_sub(*amount),
|
||||
Subcommands::NumBlocks { amount } => last.0.saturating_sub(*amount) + 1,
|
||||
};
|
||||
Ok(target..=last.0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user