Add legacy_system_instruction_processor0 tests

This commit is contained in:
Michael Vines
2020-06-03 12:42:20 -07:00
parent 9c631a01c1
commit 21d62493ff
2 changed files with 75 additions and 3 deletions

View File

@@ -19,11 +19,11 @@ impl BuiltinProgram {
}
}
fn new_system_program_activation_epoch(operating_mode: OperatingMode) -> Epoch {
pub(crate) fn new_system_program_activation_epoch(operating_mode: OperatingMode) -> Epoch {
match operating_mode {
OperatingMode::Development => 0,
OperatingMode::Preview => std::u64::MAX / 2,
OperatingMode::Stable => std::u64::MAX / 2,
OperatingMode::Preview => 1_000_000,
OperatingMode::Stable => 1_000_000,
}
}