more fixes from review

This commit is contained in:
Ethan Buchman
2018-01-13 16:14:28 -05:00
parent e4d52401cf
commit 53a5498fc5
11 changed files with 38 additions and 35 deletions

View File

@ -368,7 +368,7 @@ func (n *Node) OnStart() error {
n.sw.AddListener(l)
// Generate node PrivKey
// TODO: the loading function will need to be configurable
// TODO: pass in like priv_val
nodeKey, err := p2p.LoadOrGenNodeKey(n.config.NodeKeyFile())
if err != nil {
return err