Skip to content

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Oct 11, 2023
1 parent b4e703e commit 3c4c052
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ledger/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7741,6 +7741,7 @@ pub mod tests {
transaction_status_cf
.put_deprecated_protobuf((0, signature2, 4), &status)
.unwrap();
blockstore.set_highest_primary_index_slot(Some(4));

transaction_status_cf
.put_protobuf((signature3, 4), &status)
Expand Down Expand Up @@ -8200,6 +8201,12 @@ pub mod tests {
&AddressSignatureMeta { writeable: false },
)?;
}
let mut w_highest_primary_index_slot = self.highest_primary_index_slot.write().unwrap();
if w_highest_primary_index_slot.is_none()
|| w_highest_primary_index_slot.is_some_and(|highest_slot| highest_slot < slot)
{
*w_highest_primary_index_slot = Some(slot);
}
Ok(())
}
}
Expand Down

0 comments on commit 3c4c052

Please sign in to comment.