Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send node ID v1 to the explorer
Browse files Browse the repository at this point in the history
zaibon committed Apr 1, 2020
1 parent d7a764d commit f3c9c05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/identity/store.go
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ import (
"github.com/jbenet/go-base58"

"github.com/threefoldtech/zos/pkg/gedis/types/directory"
"github.com/threefoldtech/zos/pkg/network"

"github.com/threefoldtech/zos/pkg/geoip"

@@ -39,8 +40,11 @@ func (s *httpIDStore) RegisterNode(node pkg.Identifier, farm pkg.FarmID, version

pk := base58.Decode(node.Identity())

v1ID, _ := network.NodeIDv1()

err := json.NewEncoder(&buf).Encode(directory.TfgridNode2{
NodeID: node.Identity(),
NodeIDv1: v1ID,
FarmID: uint64(farm),
OsVersion: version,
Location: directory.TfgridLocation1{

0 comments on commit f3c9c05

Please sign in to comment.