Fix timestamp handling on ledger warp (#14210)
* Reset timestamp for slot and epoch-start on warp * Fix genesis timestamp metric source * Remove check that timestamp > unix_timestamp_from_genesis Default to previous timestamp, not genesis timestamp * Move timestamp metrics to report even on warp * Initialize slot 0 timestamps correctly * Add feature gate to warp testnet timestamp * Review suggestion: simplify warp-timestamp slot check
This commit is contained in:
@ -110,6 +110,10 @@ pub mod try_find_program_address_syscall_enabled {
|
||||
solana_sdk::declare_id!("EMsMNadQNhCYDyGpYH5Tx6dGHxiUqKHk782PU5XaWfmi");
|
||||
}
|
||||
|
||||
pub mod warp_testnet_timestamp {
|
||||
solana_sdk::declare_id!("Bfqm7fGk5MBptqa2WHXWFLH7uJvq8hkJcAQPipy2bAMk");
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
/// Map of feature identifiers to user-visible description
|
||||
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
|
||||
@ -139,6 +143,7 @@ lazy_static! {
|
||||
(simple_capitalization::id(), "simple capitalization"),
|
||||
(bpf_loader_upgradeable_program::id(), "upgradeable bpf loader"),
|
||||
(try_find_program_address_syscall_enabled::id(), "add try_find_program_address syscall"),
|
||||
(warp_testnet_timestamp::id(), "warp testnet timestamp to current #TODO"),
|
||||
/*************** ADD NEW FEATURES HERE ***************/
|
||||
]
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user