Tweak start node

Path, separate Go routine, sleep before
This commit is contained in:
Oskar Thoren 2021-06-10 18:34:29 +08:00
parent 52e74a38db
commit e97a05d0bd
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,9 @@ import (
func main() {
fmt.Println("Starting node...")
nwaku.StartNode()
go nwaku.StartNode()
time.Sleep(2 * time.Second)
fmt.Println("JSON RPC request...")

View File

@ -32,7 +32,8 @@ func StartNode() {
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")
if err != nil {