Skip to content

Commit 276649f

Browse files
committed
fly: use the network_consts values
1 parent a1f00bf commit 276649f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fly/cmd/fly/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ func loadEnvVars() {
115115
if err != nil {
116116
log.Fatal("Error loading .env file")
117117
}
118-
p2pNetworkID = verifyEnvVar("P2P_NETWORK_ID")
119-
p2pBootstrap = verifyEnvVar("P2P_BOOTSTRAP")
120118
port, err := strconv.ParseUint(verifyEnvVar("P2P_PORT"), 10, 32)
121119
if err != nil {
122120
log.Fatal("Error parsing P2P_PORT")
@@ -142,6 +140,8 @@ func verifyEnvVar(key string) string {
142140

143141
func main() {
144142
loadEnvVars()
143+
p2pNetworkID = p2p.MainnetNetworkId
144+
p2pBootstrap = p2p.MainnetBootstrapPeers
145145

146146
lvl, err := ipfslog.LevelFromString(logLevel)
147147
if err != nil {

0 commit comments

Comments
 (0)