After creating a node I’d like to make sure configs like Disable Relay
are set properly. Is there a way to do this? For context, here is my WIP for creating a node.
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
extraOpts := make(map[string]bool)
extraOpts["DisableRelay"] = true
extraOpts["DisableNatPortMap"] = true
opts := core.BuildCfg{ExtraOpts: extraOpts}
nd, err := core.NewNode(ctx, &opts)
P.S. I’m trying to create a lightweight node just for generating hashes from ipfs add
. If anyone knows what I can do to make the node as lightweight as possible, that’d be amazing. Thanks!