consolidate constants related to time for future refactoring (#14440)

This commit is contained in:
Jeff Washington (jwash)
2021-01-07 09:49:24 -06:00
committed by GitHub
parent 3fc7362486
commit 938d482135
8 changed files with 12 additions and 28 deletions

View File

@@ -142,8 +142,7 @@ mod tests {
use crate::{clock::*, sysvar::Sysvar};
const SECONDS_PER_YEAR: f64 = 365.242_199 * 24.0 * 60.0 * 60.0;
const SLOTS_PER_YEAR: f64 =
SECONDS_PER_YEAR / (DEFAULT_TICKS_PER_SLOT as f64 / DEFAULT_TICKS_PER_SECOND as f64);
const SLOTS_PER_YEAR: f64 = SECONDS_PER_YEAR / DEFAULT_S_PER_SLOT;
let rent = Rent::default();
panic!(