mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-25 11:43:06 +00:00
style: apply nightly cargo fmt
This commit is contained in:
parent
a838a45a2c
commit
3ba2441b6e
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user