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:
Łukasz Magiera
2020-06-15 19:05:39 +02:00
committed by GitHub
8 changed files with 121 additions and 5 deletions
+10 -1
View File
@@ -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"