Skip to content

Commit

Permalink
Merge pull request #152 from eigerco/fix/136/provider-register
Browse files Browse the repository at this point in the history
fix(storage-pallet): storage registration
  • Loading branch information
th7nder authored Jul 23, 2024
2 parents e0de99d + 15c3863 commit c9e49bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions runtime/src/configs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
}

parameter_types! {
pub const Period: u32 = 6 * HOURS;
pub const Offset: u32 = 0;
pub const Period: u64 = 6 * HOURS;
pub const Offset: u64 = 0;
}

impl pallet_session::Config for Runtime {
Expand Down Expand Up @@ -326,9 +326,9 @@ parameter_types! {
// Market Pallet
/// Deal duration values copied from FileCoin.
/// <https://github.com/filecoin-project/builtin-actors/blob/c32c97229931636e3097d92cf4c43ac36a7b4b47/actors/market/src/policy.rs#L28>
pub const TimeUnitInBlocks: u32 = DAYS;
pub const MinDealDuration: u32 = 20;
pub const MaxDealDuration: u32 = 1278;
pub const TimeUnitInBlocks: u64 = DAYS;
pub const MinDealDuration: u64 = 20;
pub const MaxDealDuration: u64 = 1278;
}

#[cfg(feature = "testnet")]
Expand All @@ -342,9 +342,9 @@ parameter_types! {
pub const MaxProveCommitDuration: BlockNumber = 5 * MINUTES;

// Market Pallet
pub const TimeUnitInBlocks: u32 = MINUTES;
pub const MinDealDuration: u32 = 5;
pub const MaxDealDuration: u32 = 180;
pub const TimeUnitInBlocks: u64 = MINUTES;
pub const MinDealDuration: u64 = 5;
pub const MaxDealDuration: u64 = 180;
}

impl pallet_storage_provider::Config for Runtime {
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub type Nonce = u32;
pub type Hash = sp_core::H256;

/// An index to a block.
pub type BlockNumber = u32;
pub type BlockNumber = u64;

/// The address format for describing accounts.
pub type Address = MultiAddress<AccountId, ()>;
Expand Down

0 comments on commit c9e49bf

Please sign in to comment.