Move Init from core.go to debug.go as function is only for simulator

This commit is contained in:
Neil Alexander 2018-05-27 23:37:57 +01:00
parent 460a22c063
commit ccf71af6b7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 8 additions and 8 deletions

View file

@ -29,6 +29,14 @@ func StartProfiler(log *log.Logger) error {
return nil
}
// This function is only called by the simulator to set up a node with random
// keys. It should not be used and may be removed in the future.
func (c *Core) Init() {
bpub, bpriv := newBoxKeys()
spub, spriv := newSigKeys()
c.init(bpub, bpriv, spub, spriv)
}
////////////////////////////////////////////////////////////////////////////////
// Core