add admin RPC find call, add kademlia NodeLookup interactive

This commit is contained in:
arnaucube
2019-12-15 17:22:35 +01:00
parent d971d1503a
commit ff0ba3995a
13 changed files with 264 additions and 22 deletions

View File

@@ -43,6 +43,15 @@ func cmdStart(c *cli.Context) error {
}
log.Info("New node created with ID: ", n.ID())
}
go func() {
admin := node.NewAdmin(n)
err := admin.Start()
if err != nil {
panic(err)
}
}()
err = n.Start()
return err
}