From 9ed80d326de942f7556edecd515ed9bac7231d7f Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 17 Jun 2024 16:38:05 -0400 Subject: [PATCH] chore: change order of output --- main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 647517e..311503a 100644 --- a/main.go +++ b/main.go @@ -65,13 +65,6 @@ func main() { bootnodes = append(bootnodes, tree.Nodes()...) } - if len(bootnodes) > 0 { - fmt.Println("Bootnodes:") - for i, b := range bootnodes { - fmt.Println(i+1, "-", b.String()) - } - } - config := discover.Config{ PrivateKey: priv, Bootnodes: bootnodes, @@ -100,13 +93,20 @@ func main() { localnode.SetFallbackUDP(udpAddr.Port) - fmt.Println("\nYour node:") + fmt.Println("Your node:") fmt.Println(localnode.Node()) listener, err := discover.ListenV5(conn, localnode, config) if err != nil { panic(err) } + if len(bootnodes) > 0 { + fmt.Println("\nBootnodes:") + for i, b := range bootnodes { + fmt.Println(i+1, "-", b.String()) + } + } + peerDelay := 50 * time.Millisecond bucketSize := 15