mirror of
https://github.com/waku-org/test-discv5.git
synced 2025-01-25 20:29:00 +00:00
chore: change order of output
This commit is contained in:
parent
1f2ac5154a
commit
9ed80d326d
16
main.go
16
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user