enable libp2p options

This commit is contained in:
Anton Evangelatov
2021-06-30 12:55:43 +02:00
parent a8d5ae5213
commit 9ec7cd7239
23 changed files with 760 additions and 250 deletions
+3 -1
View File
@@ -160,9 +160,11 @@ func ConfigFullNode(c interface{}) Option {
return Error(xerrors.Errorf("invalid config from repo, got: %T", c))
}
enableLibp2pNode := true // always enable libp2p for full nodes
ipfsMaddr := cfg.Client.IpfsMAddr
return Options(
ConfigCommon(&cfg.Common),
ConfigCommon(&cfg.Common, enableLibp2pNode),
If(cfg.Client.UseIpfs,
Override(new(dtypes.ClientBlockstore), modules.IpfsClientBlockstore(ipfsMaddr, cfg.Client.IpfsOnlineMode)),