Merge pull request #1994 from laser/feat/1920-toggle-accepting-storage-deals
allow miner to disable/enable consideration of received storage deal proposals
This commit is contained in:
+10
-1
@@ -27,7 +27,12 @@ type FullNode struct {
|
||||
type StorageMiner struct {
|
||||
Common
|
||||
|
||||
Storage sectorstorage.SealerConfig
|
||||
Dealmaking DealmakingConfig
|
||||
Storage sectorstorage.SealerConfig
|
||||
}
|
||||
|
||||
type DealmakingConfig struct {
|
||||
AcceptingStorageDeals bool
|
||||
}
|
||||
|
||||
// API contains configs for API endpoint
|
||||
@@ -113,6 +118,10 @@ func DefaultStorageMiner() *StorageMiner {
|
||||
AllowCommit: true,
|
||||
AllowUnseal: true,
|
||||
},
|
||||
|
||||
Dealmaking: DealmakingConfig{
|
||||
AcceptingStorageDeals: true,
|
||||
},
|
||||
}
|
||||
cfg.Common.API.ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
|
||||
cfg.Common.API.RemoteListenAddress = "127.0.0.1:2345"
|
||||
|
||||
Reference in New Issue
Block a user