chore: change order of output

This commit is contained in:
Richard Ramos 2024-06-17 16:38:05 -04:00
parent 1f2ac5154a
commit 9ed80d326d
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

16
main.go
View File

@ -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