make sysvar creation a bit more foolproof (#6294)

This commit is contained in:
Rob Walker
2019-10-09 23:22:33 -07:00
committed by GitHub
parent 1f345ce2d9
commit e58e48e919
8 changed files with 29 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ const ID: [u8; 32] = [
87, 184, 86, 108, 197, 55, 95, 244, 0, 0, 0,
];
crate::solana_name_id!(ID, "SysvarStakeHistory1111111111111111111111111");
crate::solana_sysvar_id!(ID, "SysvarStakeHistory1111111111111111111111111");
pub const MAX_STAKE_HISTORY: usize = 512; // it should never take as many as 512 epochs to warm up or cool down