Skip to content

Commit

Permalink
Use seal-duration in calculating the earliest StartEpoch that we will…
Browse files Browse the repository at this point in the history
… consider (#4337)
  • Loading branch information
ingar authored Oct 12, 2020
1 parent 8d769f0 commit 49155ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/modules/storageminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func BasicDealFilter(user dtypes.DealFilter) func(onlineOk dtypes.ConsiderOnline

// Reject if it's more than 7 days in the future
// TODO: read from cfg
maxStartEpoch := ht + abi.ChainEpoch(7*builtin.EpochsInDay)
maxStartEpoch := earliest + abi.ChainEpoch(7*builtin.EpochsInDay)
if deal.Proposal.StartEpoch > maxStartEpoch {
return false, fmt.Sprintf("deal start epoch is too far in the future: %s > %s", deal.Proposal.StartEpoch, maxStartEpoch), nil
}
Expand Down

0 comments on commit 49155ac

Please sign in to comment.