only add RemoteListenAddress to StorageMinerNode config
This commit is contained in:
parent
27e81f37f3
commit
209e8b3041
@ -58,7 +58,6 @@ func defCommon() Common {
|
|||||||
return Common{
|
return Common{
|
||||||
API: API{
|
API: API{
|
||||||
ListenAddress: "/ip4/127.0.0.1/tcp/1234/http",
|
ListenAddress: "/ip4/127.0.0.1/tcp/1234/http",
|
||||||
RemoteListenAddress: "127.0.0.1:1234",
|
|
||||||
Timeout: Duration(30 * time.Second),
|
Timeout: Duration(30 * time.Second),
|
||||||
},
|
},
|
||||||
Libp2p: Libp2p{
|
Libp2p: Libp2p{
|
||||||
@ -75,7 +74,7 @@ func defCommon() Common {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default returns the default config
|
// DefaultFullNode returns the default config
|
||||||
func DefaultFullNode() *FullNode {
|
func DefaultFullNode() *FullNode {
|
||||||
return &FullNode{
|
return &FullNode{
|
||||||
Common: defCommon(),
|
Common: defCommon(),
|
||||||
@ -93,6 +92,7 @@ func DefaultStorageMiner() *StorageMiner {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
cfg.Common.API.ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
|
cfg.Common.API.ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
|
||||||
|
cfg.Common.API.RemoteListenAddress = "127.0.0.1:2345"
|
||||||
return cfg
|
return cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user