Add expected seal duration to custom deal logic, reject deals that start too early

This commit is contained in:
Aayush Rajasekaran
2020-07-15 17:31:50 -04:00
parent 9b6afd82aa
commit a5ef629cef
9 changed files with 129 additions and 46 deletions
+2
View File
@@ -326,6 +326,8 @@ func Online() Option {
Override(new(dtypes.SetConsiderOfflineRetrievalDealsConfigFunc), modules.NewSetConsiderOfflineRetrievalDealsConfigFunc),
Override(new(dtypes.SetSealingDelayFunc), modules.NewSetSealDelayFunc),
Override(new(dtypes.GetSealingDelayFunc), modules.NewGetSealDelayFunc),
Override(new(dtypes.SetExpectedSealDurationFunc), modules.NewSetExpectedSealDurationFunc),
Override(new(dtypes.GetExpectedSealDurationFunc), modules.NewGetExpectedSealDurationFunc),
),
)
}