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