Skip to content
Snippets Groups Projects
Commit 25b92369 authored by netrino's avatar netrino
Browse files

Fixed getndf from a gateway. ClientVersion and ID of size 8 were missing from poll msg

parent 81858c72
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,13 @@ import ( ...@@ -18,11 +18,13 @@ import (
// "gitlab.com/elixxir/client/switchboard" // "gitlab.com/elixxir/client/switchboard"
// "gitlab.com/elixxir/client/ud" // "gitlab.com/elixxir/client/ud"
// "gitlab.com/elixxir/primitives/fact" // "gitlab.com/elixxir/primitives/fact"
"gitlab.com/elixxir/client/api"
"gitlab.com/elixxir/comms/client" "gitlab.com/elixxir/comms/client"
"gitlab.com/xx_network/comms/connect" "gitlab.com/xx_network/comms/connect"
//"time" //"time"
pb "gitlab.com/elixxir/comms/mixmessages" pb "gitlab.com/elixxir/comms/mixmessages"
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id/ephemeral"
"gitlab.com/xx_network/primitives/utils" "gitlab.com/xx_network/primitives/utils"
) )
...@@ -63,12 +65,14 @@ var getNDFCmd = &cobra.Command{ ...@@ -63,12 +65,14 @@ var getNDFCmd = &cobra.Command{
if gwHost != "" { if gwHost != "" {
host, _ := connect.NewHost(&id.TempGateway, gwHost, host, _ := connect.NewHost(&id.TempGateway, gwHost,
cert, params) cert, params)
dummyID := ephemeral.ReservedIDs[0]
pollMsg := &pb.GatewayPoll{ pollMsg := &pb.GatewayPoll{
Partial: &pb.NDFHash{ Partial: &pb.NDFHash{
Hash: nil, Hash: nil,
}, },
LastUpdate: uint64(0), LastUpdate: uint64(0),
ReceptionID: id.DummyUser.Marshal(), ReceptionID: dummyID[:],
ClientVersion: []byte(api.SEMVER),
} }
resp, err := comms.SendPoll(host, pollMsg) resp, err := comms.SendPoll(host, pollMsg)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment