diff --git a/programs/registry/src/protocol_config/state.rs b/programs/registry/src/protocol_config/state.rs index eaaa41b2b1..d3094498a8 100644 --- a/programs/registry/src/protocol_config/state.rs +++ b/programs/registry/src/protocol_config/state.rs @@ -184,12 +184,16 @@ impl ProtocolConfig { /// In the last part of the active phase the registration phase starts. /// Returns end slot of the registration phase/start slot of the next active phase. + /// Registration phase time check is temporarily disabled to allow + /// foresters to register for the current epoch at any time. pub fn is_registration_phase(&self, slot: u64) -> Result { let latest_register_epoch = self.get_latest_register_epoch(slot)?; + /* let latest_register_epoch_progress = self.get_latest_register_epoch_progress(slot)?; if latest_register_epoch_progress >= self.registration_phase_length { return err!(RegistryError::NotInRegistrationPeriod); - } + } */ + Ok((latest_register_epoch) * self.active_phase_length + self.genesis_slot + self.registration_phase_length) diff --git a/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs b/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs index 9b40b900e5..2c3e82972a 100644 --- a/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs +++ b/sdk-tests/csdk-anchor-full-derived-test/tests/integration_tests.rs @@ -3863,7 +3863,7 @@ async fn test_d9_edge_many_literals() { #[tokio::test] async fn test_d9_edge_mixed() { use csdk_anchor_full_derived_test::d9_seeds::{ - edge_cases::{AB, SEED_123, _UNDERSCORE_CONST}, + edge_cases::{_UNDERSCORE_CONST, AB, SEED_123}, D9EdgeMixedParams, };