Skip to content
Snippets Groups Projects
Unverified Commit 91720249 authored by capossele's avatar capossele
Browse files

:construction: WIP

parent 5496d1cb
No related branches found
No related tags found
No related merge requests found
package client package client
import ( import (
"encoding/hex"
"net" "net"
"strings" "strings"
"sync" "sync"
...@@ -19,6 +18,7 @@ import ( ...@@ -19,6 +18,7 @@ import (
"github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/logger"
"github.com/iotaledger/hive.go/network" "github.com/iotaledger/hive.go/network"
"github.com/iotaledger/hive.go/node" "github.com/iotaledger/hive.go/node"
"github.com/mr-tron/base58"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
) )
...@@ -101,15 +101,15 @@ type EventDispatchers struct { ...@@ -101,15 +101,15 @@ type EventDispatchers struct {
func sendHeartbeat(conn *network.ManagedConnection, hb *packet.Heartbeat) { func sendHeartbeat(conn *network.ManagedConnection, hb *packet.Heartbeat) {
var out strings.Builder var out strings.Builder
for _, value := range hb.OutboundIDs { for _, value := range hb.OutboundIDs {
out.WriteString(hex.EncodeToString(value)) out.WriteString(base58.Encode(value))
} }
var in strings.Builder var in strings.Builder
for _, value := range hb.InboundIDs { for _, value := range hb.InboundIDs {
in.WriteString(hex.EncodeToString(value)) in.WriteString(base58.Encode(value))
} }
log.Debugw( log.Debugw(
"Heartbeat", "Heartbeat",
"nodeID", hex.EncodeToString(hb.OwnID), "nodeID", base58.Encode(hb.OwnID),
"outboundIDs", out.String(), "outboundIDs", out.String(),
"inboundIDs", in.String(), "inboundIDs", in.String(),
) )
......
This diff is collapsed.
This diff is collapsed.
...@@ -41,6 +41,7 @@ services: ...@@ -41,6 +41,7 @@ services:
--config-dir=/tmp --config-dir=/tmp
--database.directory=/tmp/mainnetdb --database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap --node.enablePlugins=bootstrap
--node.disablePlugins=valuetransfers
volumes: volumes:
- ./config.docker.json:/tmp/config.json:ro - ./config.docker.json:/tmp/config.json:ro
- goshimmer-cache:/go - goshimmer-cache:/go
...@@ -57,7 +58,7 @@ services: ...@@ -57,7 +58,7 @@ services:
--config-dir=/tmp --config-dir=/tmp
--database.directory=/tmp/mainnetdb --database.directory=/tmp/mainnetdb
--node.enablePlugins=bootstrap --node.enablePlugins=bootstrap
--node.disablePlugins=dashboard,portcheck --node.disablePlugins=dashboard,portcheck,valuetransfers
volumes: volumes:
- ./config.docker.json:/tmp/config.json:ro - ./config.docker.json:/tmp/config.json:ro
- goshimmer-cache:/go - goshimmer-cache:/go
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment