diff --git a/common/src/transaction.rs b/common/src/transaction.rs index b69b3017..e734b893 100644 --- a/common/src/transaction.rs +++ b/common/src/transaction.rs @@ -1,10 +1,10 @@ use borsh::{BorshDeserialize, BorshSerialize}; use log::warn; use nssa::{AccountId, V03State}; +use nssa_core::program::Timestamp; use serde::{Deserialize, Serialize}; use crate::{HashType, block::BlockId}; -use nssa_core::program::Timestamp; #[derive(Debug, Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize)] pub enum NSSATransaction { diff --git a/nssa/core/src/program.rs b/nssa/core/src/program.rs index c533d2fd..6fd986df 100644 --- a/nssa/core/src/program.rs +++ b/nssa/core/src/program.rs @@ -180,7 +180,8 @@ impl ValidityWindow { } } - /// Valid for block IDs in the range [from, to) and timestamps in [from_timestamp, to_timestamp). + /// Valid for block IDs in the range [from, to) and timestamps in [from_timestamp, + /// to_timestamp). #[must_use] pub fn is_valid_for(&self, block_id: BlockId, timestamp_ms: Timestamp) -> bool { self.from.is_none_or(|start| block_id >= start)