Skip to content
Snippets Groups Projects
Commit b35c4dbd authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix issue in LoginWithProtoClient

parent 4bf0a6d3
No related branches found
No related tags found
3 merge requests!117Release,!116Dev,!114Fix issue in LoginWithProtoClient
......@@ -378,7 +378,7 @@ func LoginWithNewBaseNDF_UNSAFE(storageDir string, password []byte,
//// procedures and is generally unsafe.
func LoginWithProtoClient(storageDir string, password []byte, protoClientJSON []byte,
newBaseNdf string, parameters params.Network) (*Client, error) {
jww.INFO.Printf("LoginWithNewBaseNDF_UNSAFE()")
jww.INFO.Printf("LoginWithProtoClient()")
// Parse the NDF
def, err := parseNDF(newBaseNdf)
......@@ -407,6 +407,11 @@ func LoginWithProtoClient(storageDir string, password []byte, protoClientJSON []
//store the updated base NDF
c.storage.SetNDF(def)
err = c.initPermissioning(def)
if err != nil {
return nil, err
}
// Initialize network and link it to context
c.network, err = network.NewManager(c.storage, c.switchboard, c.rng,
c.events, c.comms, parameters, def)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment