program-test: Add ability to warp to the future (#14998)
* program-test: Add ability to warp to the future * Make `start_local_server` take by value * Remove clear_invoke_context
This commit is contained in:
@ -195,6 +195,13 @@ impl BlockCommitmentCache {
|
||||
self.commitment_slots.slot = slot;
|
||||
self.commitment_slots.root = slot;
|
||||
}
|
||||
|
||||
pub fn set_all_slots(&mut self, slot: Slot, root: Slot) {
|
||||
self.commitment_slots.slot = slot;
|
||||
self.commitment_slots.highest_confirmed_slot = slot;
|
||||
self.commitment_slots.root = root;
|
||||
self.commitment_slots.highest_confirmed_root = root;
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Clone, Copy)]
|
||||
|
Reference in New Issue
Block a user