Skip to content
Snippets Groups Projects
Commit 4c7ba859 authored by RUANO RINCON Santiago's avatar RUANO RINCON Santiago
Browse files

autopeering: write to disk the local peer id

parent 280f1220
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"net"
"os"
"strconv"
"strings"
"sync"
......@@ -152,6 +153,9 @@ func start(shutdownSignal <-chan struct{}) {
srvBarrier.c <- srv
log.Infof("%s started: ID=%s Address=%s/%s", PluginName, lPeer.ID(), localAddr.String(), localAddr.Network())
f, _ := os.OpenFile("/tmp/goshimmer-peer-local",
os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
f.WriteString(lPeer.ID().String())
<-shutdownSignal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment