Allow for hard fork at last root (#10762) (#10766)

(cherry picked from commit 0e393a5684)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2020-06-24 06:10:48 +00:00
committed by GitHub
parent a11986ad1d
commit 397f9f11c5

View File

@ -325,7 +325,7 @@ pub fn process_blockstore_from_root(
for hard_fork_slot in new_hard_forks.iter() {
// Ensure the user isn't trying to add new hard forks for a slot that's earlier than the current
// root slot. Doing so won't cause any effect so emit an error
if *hard_fork_slot <= start_slot {
if *hard_fork_slot < start_slot {
error!(
"Unable to add new hard fork at {}, it must be greater than slot {}",
hard_fork_slot, start_slot