Skip to content

Commit

Permalink
obliterate even more code
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed Mar 24, 2022
1 parent 1dca9ab commit 1220f6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
3 changes: 1 addition & 2 deletions types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
pub mod build_version;
pub mod deadlines;
mod piece;
// mod randomness;
pub mod sector;
mod state;

Expand All @@ -18,7 +17,7 @@ pub use self::piece::*;
pub use self::sector::*;
pub use self::state::*;

pub use fvm_shared::randomness::Randomness;
pub use fvm_shared::randomness::{Randomness, RANDOMNESS_LENGTH};
pub use fvm_shared::version::NetworkVersion;

use address::Address;
Expand Down
21 changes: 2 additions & 19 deletions types/src/sector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ pub use fvm_shared::sector::{
AggregateSealVerifyInfo, AggregateSealVerifyProofAndInfos, InteractiveSealRandomness,
OnChainWindowPoStVerifyInfo, PoStProof, PoStRandomness, RegisteredAggregateProof,
RegisteredPoStProof, RegisteredSealProof, SealRandomness, SealVerifyInfo, SealVerifyParams,
SectorID, SectorInfo, SectorSize, WindowPoStVerifyInfo, WinningPoStVerifyInfo,
SectorID, SectorInfo, SectorNumber, SectorQuality, SectorSize, Spacetime, StoragePower,
WindowPoStVerifyInfo, WinningPoStVerifyInfo, MAX_SECTOR_NUMBER,
};
use num_bigint::BigInt;
pub const RANDOMNESS_LENGTH: usize = 32;

/// SectorNumber is a numeric identifier for a sector. It is usually relative to a miner.
pub type SectorNumber = u64;

/// The maximum assignable sector number.
/// Raising this would require modifying our AMT implementation.
pub const MAX_SECTOR_NUMBER: SectorNumber = i64::MAX as u64;

/// Unit of storage power (measured in bytes)
pub type StoragePower = BigInt;

/// The unit of spacetime committed to the network
pub type Spacetime = BigInt;

/// Unit of sector quality
pub type SectorQuality = BigInt;

0 comments on commit 1220f6a

Please sign in to comment.