disable/enable retrieval deal consideration via config

This commit is contained in:
laser
2020-06-24 08:07:12 -07:00
parent 7d9f9ba756
commit ef0abf2b98
4 changed files with 55 additions and 8 deletions
+8
View File
@@ -18,6 +18,14 @@ type AcceptingStorageDealsConfigFunc func() (bool, error)
// storage deal acceptance.
type SetAcceptingStorageDealsConfigFunc func(bool) error
// AcceptingRetrievalDealsFunc is a function which reads from miner config to
// determine if the user has disabled retrieval acceptance (or not).
type AcceptingRetrievalDealsConfigFunc func() (bool, error)
// SetAcceptingRetrievalDealsFunc is a function which is used to disable or enable
// retrieval deal acceptance.
type SetAcceptingRetrievalDealsConfigFunc func(bool) error
// StorageDealPieceCidBlocklistConfigFunc is a function which reads from miner config
// to obtain a list of CIDs for which the storage miner will not accept storage
// proposals.