Skip to content
Snippets Groups Projects
Commit 081d7e27 authored by Jonah Husson's avatar Jonah Husson
Browse files

Re add perm host for round updates

parent a891ec36
No related branches found
No related tags found
1 merge request!23Release
...@@ -35,12 +35,18 @@ func Init(comms *client.Comms, def *ndf.NetworkDefinition) (*Registration, error ...@@ -35,12 +35,18 @@ func Init(comms *client.Comms, def *ndf.NetworkDefinition) (*Registration, error
hParam.AuthEnabled = false hParam.AuthEnabled = false
// Client will not send KeepAlive packets // Client will not send KeepAlive packets
hParam.KaClientOpts.Time = time.Duration(math.MaxInt64) hParam.KaClientOpts.Time = time.Duration(math.MaxInt64)
perm.host, err = comms.AddHost(&id.ClientRegistration, def.ClientRegistration.Address, perm.host, err = comms.AddHost(&id.ClientRegistration, def.Registration.ClientRegistrationAddress,
[]byte(def.ClientRegistration.TlsCertificate), hParam) []byte(def.Registration.TlsCertificate), hParam)
if err != nil { if err != nil {
return nil, errors.WithMessage(err, "failed to create registration") return nil, errors.WithMessage(err, "failed to create registration")
} }
_, err = comms.AddHost(&id.Permissioning, def.Registration.Address, // We need to add this for round updates to work
[]byte(def.Registration.TlsCertificate), hParam)
if err != nil {
return nil, errors.WithMessage(err, "failed to create permissioning")
}
return &perm, nil return &perm, nil
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment