Fix startup issue around rooted slots

This commit is contained in:
Christian Kamm 2022-01-04 10:14:30 +01:00
parent d5395a3b75
commit 3f242aa3b6
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ async fn feed_data_accountsdb(
if write.slot > newest_write_slot {
newest_write_slot = write.slot;
} else if write.slot < max_rooted_slot - max_out_of_order_slots {
} else if max_rooted_slot > 0 && write.slot < max_rooted_slot - max_out_of_order_slots {
anyhow::bail!("received write {} slots back from max rooted slot {}", max_rooted_slot - write.slot, max_rooted_slot);
}