Compare commits

...

1 Commits

Author SHA1 Message Date
8aa30b6fe0 debugs 2024-05-06 18:50:34 +00:00

View File

@ -2,7 +2,9 @@ package main
import ( import (
"context" "context"
"fmt"
"os" "os"
"strings"
"github.com/fatih/color" "github.com/fatih/color"
logging "github.com/ipfs/go-log/v2" logging "github.com/ipfs/go-log/v2"
@ -24,6 +26,11 @@ var log = logging.Logger("main")
var AdvanceBlockCmd *cli.Command var AdvanceBlockCmd *cli.Command
func main() { func main() {
libp2p_addr := os.Getenv("LOTUS_LIBP2P_LISTENADDRESSES")
fmt.Println("env", libp2p_addr)
if len(libp2p_addr) > 0 && strings.Contains(libp2p_addr, ",") {
fmt.Println("env var is csv")
}
api.RunningNodeType = api.NodeFull api.RunningNodeType = api.NodeFull
lotuslog.SetupLogLevels() lotuslog.SetupLogLevels()