pass Subsystems to StorageMiner option; add enableLibp2p bool in Settings

This commit is contained in:
Anton Evangelatov
2021-07-07 13:56:37 +02:00
parent caa366bc6a
commit 6b014f57e5
10 changed files with 21 additions and 46 deletions
+1
View File
@@ -204,6 +204,7 @@ func FullAPI(out *api.FullNode, fopts ...FullOption) Option {
return Options(
func(s *Settings) error {
s.nodeType = repo.FullNode
s.enableLibp2pNode = true
return nil
},
Options(fopts...),