add commands for manipulating storage deal CID blacklist
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package dtypes
|
||||
|
||||
import (
|
||||
"github.com/ipfs/go-cid"
|
||||
|
||||
"github.com/filecoin-project/go-address"
|
||||
"github.com/filecoin-project/specs-actors/actors/abi"
|
||||
)
|
||||
@@ -15,3 +17,12 @@ type AcceptingStorageDealsConfigFunc func() (bool, error)
|
||||
// SetAcceptingStorageDealsFunc is a function which is used to disable or enable
|
||||
// storage deal acceptance.
|
||||
type SetAcceptingStorageDealsConfigFunc func(bool) error
|
||||
|
||||
// StorageDealCidBlacklistConfigFunc is a function which reads from miner config
|
||||
// to obtain a list of CIDs for which the storage miner will not accept storage
|
||||
// proposals.
|
||||
type StorageDealCidBlacklistConfigFunc func() ([]cid.Cid, error)
|
||||
|
||||
// SetStorageDealCidBlacklistConfigFunc is a function which is used to set a
|
||||
// list of CIDs for which the storage miner will reject deal proposals.
|
||||
type SetStorageDealCidBlacklistConfigFunc func([]cid.Cid) error
|
||||
|
||||
Reference in New Issue
Block a user