Skip to content

Commit 9f70de1

Browse files
committed
bootnode
1 parent f86d100 commit 9f70de1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ cortex: clib
2929
build/env.sh go run build/ci.go install ./cmd/cortex
3030
@echo "Done building."
3131
@echo "Run \"$(GOBIN)/cortex\" to launch cortex."
32+
bootnode:
33+
build/env.sh go run build/ci.go install -remote_infer ./cmd/bootnode
34+
@echo "Done building."
35+
@echo "Run \"$(GOBIN)/cortex\" to launch cortex."
36+
#mv ./build/bin/bootnode ./build/bin/bootnode
3237

3338
cortex-remote:
3439
build/env.sh go run build/ci.go install -remote_infer ./cmd/cortex

cmd/bootnode/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ func main() {
8383
utils.Fatalf("-nodekeyhex: %v", err)
8484
}
8585
}
86-
8786
if *writeAddr {
8887
fmt.Printf("%v\n", discover.PubkeyID(&nodeKey.PublicKey))
8988
os.Exit(0)
@@ -101,6 +100,7 @@ func main() {
101100
if err != nil {
102101
utils.Fatalf("-ResolveUDPAddr: %v", err)
103102
}
103+
104104
conn, err := net.ListenUDP("udp", addr)
105105
if err != nil {
106106
utils.Fatalf("-ListenUDP: %v", err)
@@ -131,6 +131,5 @@ func main() {
131131
utils.Fatalf("%v", err)
132132
}
133133
}
134-
135134
select {}
136135
}

params/bootnodes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ var CerebroBootnodes = []string{
4343
"enode://767ea197d2e19a3f9ec63c5966f1fb625629791428941b58fd290b9ecf232dcb07eec210c8a2207ef3c0eecd4cd5ad515d967c9fedabbd3451db540c46e486c4@18.130.232.151:37566",
4444
// cortex-jp-cpu
4545
"enode://3c893c87cef40b090feaad65bae4f69ba8545fd1e0d2212852d85172af6042d07a3373a5187ba93ad2f3c85562a8bac4a3f8969efbfbf4269e0239266be6136b@52.194.191.24:37566",
46+
"enode://72f70e8e77f68f5526d730f1003e04caa0995eb5c8fb66644da72b23656dc8c16075b0f740d687a3c2aa9d0db1337bf826715c69ae2adb64dc106d3d4165fd79@47.91.91.217:37566",
47+
"enode://c5780febab5e5a7bd6387a20a2662df3f1b16a10d93931a40a147e0f6cfd89a576c2e2f758e0e886c3f91a1bc43b3c7fa01af0c8b8ce39c8004c048ca880bccf@47.74.1.234:37566",
48+
"enode://9b3b10d4223e010b01411a252312fb69da63b88fd610c07adb5bfa941a8598009a4bb2deeac42c41498acbdaec2196e2cc1fe746286c46f0b5c47d42c5c777b3@47.88.7.24:37566",
4649
}
4750

4851
var TestnetBootnodes = []string{}

0 commit comments

Comments
 (0)