Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
b35c4dbd
Commit
b35c4dbd
authored
Dec 30, 2021
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue in LoginWithProtoClient
parent
4bf0a6d3
No related branches found
No related tags found
3 merge requests
!117
Release
,
!116
Dev
,
!114
Fix issue in LoginWithProtoClient
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/client.go
+6
-1
6 additions, 1 deletion
api/client.go
with
6 additions
and
1 deletion
api/client.go
+
6
−
1
View file @
b35c4dbd
...
...
@@ -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
(
"LoginWith
NewBaseNDF_UNSAFE
()"
)
jww
.
INFO
.
Printf
(
"LoginWith
ProtoClient
()"
)
// 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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment