Skip to content

Commit

Permalink
fix: bug to prove-commit at a deadline (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
th7nder authored Nov 12, 2024
1 parent 1b057f7 commit e2e4bd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pallets/storage-provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ pub mod pallet {

/// Represents how many challenge deadline there are in 1 proving period.
/// Closely tied to `WPoStChallengeWindow`
/// It needs to be at least 3, because if we prove commit at a deadline,
/// the system cannot assign a sector directly to a next one.
/// https://github.com/eigerco/polka-storage/blob/8c01c3cf65e5caee7a191df367dda4a66e27594b/pallets/storage-provider/src/deadline.rs#L784
#[pallet::constant]
type WPoStPeriodDeadlines: Get<u64>;

Expand Down
4 changes: 2 additions & 2 deletions runtime/src/configs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ parameter_types! {
#[cfg(feature = "testnet")]
parameter_types! {
// Storage Provider Pallet
pub const WpostProvingPeriod: BlockNumber = 4 * MINUTES;
pub const WPoStPeriodDeadlines: u64 = 2;
pub const WpostProvingPeriod: BlockNumber = 6 * MINUTES;
pub const WPoStPeriodDeadlines: u64 = 3;
pub const WpostChallengeWindow: BlockNumber = 2 * MINUTES;
pub const WPoStChallengeLookBack: BlockNumber = MINUTES;
pub const MinSectorExpiration: BlockNumber = 5 * MINUTES;
Expand Down

0 comments on commit e2e4bd3

Please sign in to comment.