Restore api flags

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera
2019-11-13 16:37:40 +01:00
parent 70419c0f55
commit a58e165339
4 changed files with 55 additions and 27 deletions
+3 -1
View File
@@ -75,13 +75,15 @@ func DefaultFullNode() *FullNode {
}
func DefaultStorageMiner() *StorageMiner {
return &StorageMiner{
cfg := &StorageMiner{
Common: defCommon(),
SectorBuilder: SectorBuilder{
WorkerCount: 5,
},
}
cfg.Common.API.ListenAddress = "/ip6/::1/tcp/2345/http"
return cfg
}
var _ encoding.TextMarshaler = (*Duration)(nil)