Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion programs/registry/src/protocol_config/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64> {
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
Loading