parent
52e74a38db
commit
e97a05d0bd
4
nwaku.go
4
nwaku.go
|
@ -10,7 +10,9 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("Starting node...")
|
fmt.Println("Starting node...")
|
||||||
nwaku.StartNode()
|
go nwaku.StartNode()
|
||||||
|
|
||||||
|
time.Sleep(2 * time.Second)
|
||||||
|
|
||||||
fmt.Println("JSON RPC request...")
|
fmt.Println("JSON RPC request...")
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ func StartNode() {
|
||||||
done <- true
|
done <- true
|
||||||
}()
|
}()
|
||||||
|
|
||||||
cmd := exec.Command("../bin/wakunode2")
|
// TODO Use PATH or so here instead...
|
||||||
|
cmd := exec.Command("./bin/wakunode2")
|
||||||
|
|
||||||
outfile, err := os.Create("./wakunode2.log")
|
outfile, err := os.Create("./wakunode2.log")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue